/* ==========================================================================
   APK Starter Theme — Main Stylesheet
   Optimized for Core Web Vitals & mobile-first responsive design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
	--apk-bg: #050a14;
	--apk-bg-card: rgba(15, 23, 42, 0.85);
	--apk-bg-card-solid: #0f172a;
	--apk-border: rgba(255, 255, 255, 0.08);
	--apk-text: #f1f5f9;
	--apk-text-muted: #94a3b8;
	--apk-green: #22c55e;
	--apk-green-hover: #16a34a;
	--apk-green-glow: rgba(34, 197, 94, 0.25);
	--apk-blue: #3b82f6;
	--apk-blue-light: #60a5fa;
	--apk-radius: 12px;
	--apk-radius-lg: 16px;
	--apk-container: 1200px;
	--apk-content-mobile: 680px;
	--apk-content-desktop: 1100px;
	--apk-header-h: 64px;
	--apk-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--apk-transition: 0.2s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--apk-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--apk-text);
	background: var(--apk-bg);
	-webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--apk-blue-light); text-decoration: none; transition: color var(--apk-transition); }
a:hover { color: var(--apk-green); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	line-height: 1.25;
	font-weight: 700;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: 0; left: 0;
	width: auto; height: auto;
	padding: 1rem 1.5rem;
	background: var(--apk-green);
	color: #fff;
	clip: auto;
	z-index: 100000;
}

/* --- Layout --- */
.apk-container {
	width: 100%;
	max-width: var(--apk-container);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.apk-main { min-height: 60vh; }

/* Landing page — all sections stacked & centered */
.apk-main--landing .apk-page-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.apk-main--landing .apk-hero,
.apk-main--landing .apk-app-info,
.apk-main--landing .apk-trust-bar,
.apk-main--landing .apk-features,
.apk-main--landing .apk-faq,
.apk-main--landing .apk-footer-info {
	width: 100%;
}

.apk-main--landing .apk-section-title {
	text-align: center;
}

.apk-main--landing .apk-features .apk-container,
.apk-main--landing .apk-faq .apk-container {
	max-width: var(--apk-content-mobile);
	margin-left: auto;
	margin-right: auto;
}

/* Desktop / Laptop — wider sections for better PC layout */
@media (min-width: 992px) {
	.apk-container {
		padding: 0 2rem;
	}

	.apk-main--landing .apk-hero__content {
		max-width: 860px;
	}

	.apk-main--landing .apk-hero__desc {
		max-width: 680px;
		font-size: 1rem;
	}

	.apk-main--landing .apk-hero__title {
		font-size: 2.75rem;
	}

	.apk-main--landing .apk-app-info {
		max-width: var(--apk-content-desktop);
		width: calc(100% - 4rem);
		padding: 1.5rem 2rem;
	}

	.apk-main--landing .apk-app-info__list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 2.5rem;
	}

	.apk-main--landing .apk-trust-bar__grid {
		max-width: var(--apk-content-desktop);
		gap: 1.5rem;
	}

	.apk-main--landing .apk-trust-bar__item strong {
		font-size: 0.875rem;
	}

	.apk-main--landing .apk-trust-bar__item span {
		font-size: 0.8125rem;
	}

	.apk-main--landing .apk-features .apk-container,
	.apk-main--landing .apk-faq .apk-container {
		max-width: var(--apk-content-desktop);
	}

	.apk-main--landing .apk-features__grid {
		grid-template-columns: repeat(3, 1fr);
		max-width: var(--apk-content-desktop);
		gap: 1.25rem;
	}

	.apk-main--landing .apk-features__card {
		padding: 1.75rem 1.5rem;
	}

	.apk-main--landing .apk-section-title {
		font-size: 1.75rem;
		margin-bottom: 2rem;
	}

	.apk-main--landing .apk-faq__question {
		font-size: 0.9375rem;
		padding: 1.125rem 1.5rem;
	}

	.apk-main--landing .apk-faq__answer {
		padding: 0 1.5rem 1.125rem;
	}

	.apk-main--landing .apk-faq__answer p {
		font-size: 0.875rem;
	}
}

@media (min-width: 1200px) {
	.apk-main--landing .apk-hero__content {
		max-width: 960px;
	}

	.apk-main--landing .apk-app-info,
	.apk-main--landing .apk-trust-bar__grid,
	.apk-main--landing .apk-features .apk-container,
	.apk-main--landing .apk-faq .apk-container,
	.apk-main--landing .apk-features__grid {
		max-width: var(--apk-container);
	}
}

/* --- Header --- */
.apk-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(5, 10, 20, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--apk-border);
	height: var(--apk-header-h);
}

.apk-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	gap: 1rem;
}

.apk-logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--apk-text);
	font-weight: 700;
	font-size: 1.125rem;
}

.apk-logo:hover { color: var(--apk-text); }

.apk-logo__icon { color: var(--apk-green); flex-shrink: 0; }

.apk-header__nav { display: none; }

.apk-nav {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.apk-nav a {
	color: var(--apk-text-muted);
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.5rem 0.875rem;
	border-radius: 8px;
	transition: color var(--apk-transition), background var(--apk-transition);
}

.apk-nav a:hover,
.apk-nav .current-menu-item > a,
.apk-nav .current_page_item > a {
	color: var(--apk-text);
	background: rgba(255,255,255,0.05);
}

.apk-nav .current-menu-item > a::after,
.apk-nav .current_page_item > a::after {
	content: '';
	display: block;
	width: 100%;
	height: 2px;
	background: var(--apk-green);
	border-radius: 2px;
	margin-top: 2px;
}

.apk-header__actions { display: none; }

.apk-header__toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px; height: 40px;
	background: none;
	border: 1px solid var(--apk-border);
	border-radius: 8px;
	cursor: pointer;
	padding: 8px;
}

.apk-header__toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--apk-text);
	border-radius: 2px;
	transition: transform var(--apk-transition), opacity var(--apk-transition);
}

.apk-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.apk-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.apk-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 992px) {
	.apk-header__nav { display: block; flex: 1; }
	.apk-header__nav .apk-nav { justify-content: center; }
	.apk-header__actions { display: flex; align-items: center; gap: 0.75rem; }
	.apk-header__toggle { display: none; }
}

/* Mobile nav open */
.apk-header__nav.is-open {
	display: block;
	position: absolute;
	top: var(--apk-header-h);
	left: 0; right: 0;
	background: var(--apk-bg-card-solid);
	border-bottom: 1px solid var(--apk-border);
	padding: 1rem;
}

.apk-header__nav.is-open .apk-nav {
	flex-direction: column;
	align-items: stretch;
}

/* --- Buttons --- */
.apk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: var(--apk-radius);
	font-family: var(--apk-font);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--apk-transition), transform var(--apk-transition), box-shadow var(--apk-transition);
	text-decoration: none;
	line-height: 1.4;
}

.apk-btn--primary {
	background: var(--apk-green);
	color: #fff;
}

.apk-btn--primary:hover {
	background: var(--apk-green-hover);
	color: #fff;
	box-shadow: 0 4px 20px var(--apk-green-glow);
	transform: translateY(-1px);
}

.apk-btn--sm {
	padding: 0.5rem 1rem;
	font-size: 0.8125rem;
}

.apk-btn--download {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem 0.5rem;
	width: auto;
	max-width: 300px;
	padding: 0.625rem 1.125rem;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(34, 197, 94, 0.2);
	transition: background var(--apk-transition), transform var(--apk-transition), box-shadow var(--apk-transition);
}

.apk-btn--download svg {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
}

.apk-btn--download:hover {
	box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
	transform: translateY(-2px);
}

/* Download arrow for WP Button blocks (pattern pages) */
.apk-btn--download .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: background var(--apk-transition), transform var(--apk-transition), box-shadow var(--apk-transition);
}

.apk-btn--download .wp-block-button__link::before {
	content: '';
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.apk-btn--download .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.apk-btn__text { font-size: 0.8125rem; font-weight: 600; }

.apk-btn__meta {
	flex: 0 0 100%;
	font-size: 0.625rem;
	font-weight: 400;
	opacity: 0.8;
	text-align: center;
	line-height: 1.2;
}

/* --- Hero Section --- */
.apk-hero {
	position: relative;
	padding: 2.5rem 0 1.5rem;
	background-color: var(--apk-bg);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	overflow: hidden;
}

.apk-hero--has-bg {
	min-height: 400px;
	padding: 3.5rem 0 2.5rem;
}

.apk-main--landing .apk-hero {
	padding-bottom: 1rem;
}

.apk-main--landing .apk-hero--has-bg {
	padding-bottom: 2.5rem;
}

.apk-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5,10,20,0.3) 0%, var(--apk-bg) 100%);
	pointer-events: none;
	z-index: 0;
}

.apk-hero--has-bg::before {
	background: linear-gradient(
		180deg,
		rgba(5, 10, 20, 0.72) 0%,
		rgba(5, 10, 20, 0.82) 45%,
		rgba(5, 10, 20, 0.94) 100%
	);
}

.apk-hero--has-bg .apk-hero__title {
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.apk-hero--has-bg .apk-hero__desc,
.apk-hero--has-bg .apk-hero__security {
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

@media (min-width: 992px) {
	.apk-hero--has-bg {
		min-height: 480px;
		padding: 4.5rem 0 3rem;
	}
}

.apk-hero__grid {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
}

/* Visual order — works for old + new hero markup */
.apk-hero__grid .apk-hero__meta,
.apk-hero__content .apk-hero__meta { order: 1; }

.apk-hero__grid .apk-hero__title,
.apk-hero__content .apk-hero__title { order: 2; }

.apk-hero__grid .apk-hero__actions,
.apk-hero__content .apk-hero__actions { order: 3; }

.apk-hero__grid .apk-hero__desc,
.apk-hero__content .apk-hero__desc { order: 4; }

.apk-hero__grid .apk-hero__trust-list,
.apk-hero__content .apk-hero__trust-list { order: 5; }

.apk-hero__grid .apk-hero__security,
.apk-hero__content .apk-hero__security { order: 6; }

.apk-hero__content {
	max-width: 600px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.apk-main--landing .apk-hero__content {
	text-align: center;
}

.apk-hero__icon-wrap {
	margin-bottom: 0;
	flex-shrink: 0;
}

.apk-hero__actions {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 1.25rem 1.75rem;
	margin: 1.25rem auto 1rem;
	width: auto;
	max-width: 100%;
}

.apk-hero__actions.wp-block-group.is-layout-flex,
.apk-hero__actions.wp-block-columns {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 1.25rem 1.75rem;
}

.apk-hero__actions .wp-block-column {
	flex-basis: auto !important;
	flex-grow: 0;
}

.apk-hero__cta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
}

.apk-hero__cta .wp-block-buttons {
	margin: 0;
}

.apk-hero__cta .apk-btn__meta {
	flex: none;
	width: auto;
	margin: 0;
	font-size: 0.625rem;
	font-weight: 400;
	color: var(--apk-text-muted);
	opacity: 0.85;
	text-align: left;
}

.apk-hero__actions .apk-btn--download,
.apk-hero__actions .wp-block-button.apk-btn--download {
	flex-shrink: 0;
	margin: 0;
}

.apk-hero__icon,
figure.apk-hero__icon {
	margin: 0;
	transition: transform var(--apk-transition), filter var(--apk-transition);
}

.apk-hero__icon img,
figure.apk-hero__icon img,
.apk-hero__icon-wrap .apk-hero__icon {
	width: 96px;
	height: 96px;
	border-radius: 20px;
	object-fit: cover;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	transition: transform var(--apk-transition), box-shadow var(--apk-transition);
}

.apk-hero__icon:hover,
figure.apk-hero__icon:hover,
.apk-hero__icon-wrap:hover .apk-hero__icon {
	transform: translateY(-3px) scale(1.04);
}

.apk-hero__icon:hover img,
figure.apk-hero__icon:hover img,
.apk-hero__icon-wrap:hover .apk-hero__icon {
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(34, 197, 94, 0.25);
}

@media (min-width: 768px) {
	.apk-hero__icon img,
	figure.apk-hero__icon img,
	.apk-hero__icon-wrap .apk-hero__icon {
		width: 120px;
		height: 120px;
	}

	.apk-hero__actions { gap: 1.5rem 2rem; }
}

@media (max-width: 479px) {
	.apk-hero__actions,
	.apk-hero__actions.wp-block-group.is-layout-flex {
		flex-direction: column;
		gap: 1rem;
	}

	.apk-hero__cta {
		align-items: center;
	}
}

.apk-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
	justify-content: center;
}

.apk-hero__meta p {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.apk-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Lock badge styles when user edits text in block editor */
.apk-hero__meta .apk-badge,
.apk-hero__meta .apk-badge * {
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

.apk-hero__meta .apk-badge--category,
.apk-hero__meta .apk-badge--category * {
	color: var(--apk-blue-light) !important;
}

.apk-hero__meta .apk-badge--rating,
.apk-hero__meta .apk-badge--rating * {
	color: #fbbf24 !important;
}

.apk-hero__meta .apk-badge--downloads,
.apk-hero__meta .apk-badge--downloads * {
	color: var(--apk-text-muted) !important;
}

.apk-hero__meta .apk-badge a,
.apk-hero__meta .apk-badge strong,
.apk-hero__meta .apk-badge em,
.apk-hero__meta .apk-badge mark,
.apk-hero__meta .apk-badge span {
	background: transparent !important;
}

.apk-badge--category {
	background: rgba(59, 130, 246, 0.2);
	color: var(--apk-blue-light);
	border: 1px solid rgba(59, 130, 246, 0.3);
}

.apk-badge--rating {
	background: rgba(234, 179, 8, 0.15);
	color: #fbbf24;
	border: 1px solid rgba(234, 179, 8, 0.3);
}

.apk-badge--downloads {
	background: rgba(255,255,255,0.06);
	color: var(--apk-text-muted);
	border: 1px solid var(--apk-border);
}

.apk-hero__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.75rem;
}

.apk-hero__desc {
	color: var(--apk-text-muted);
	font-size: 0.9375rem;
	margin-bottom: 1.25rem;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}

.apk-hero__trust-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin-bottom: 1.25rem;
	justify-content: center;
}

.apk-hero__trust-list li {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.8125rem;
	color: var(--apk-text-muted);
}

.apk-hero__trust-list svg { color: var(--apk-green); flex-shrink: 0; }

.apk-hero__security {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	color: var(--apk-text-muted);
	margin-top: 0.75rem;
}

.apk-hero__security svg { color: var(--apk-blue); flex-shrink: 0; }

/* --- App Info Card --- */
.apk-app-info {
	background: var(--apk-bg-card);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--apk-border);
	border-radius: var(--apk-radius-lg);
	padding: 1.25rem;
	margin: 0 1.25rem 1.5rem;
	max-width: var(--apk-container);
	width: calc(100% - 2.5rem);
	margin-left: auto;
	margin-right: auto;
}

.apk-main--landing .apk-app-info {
	margin-top: 0;
	margin-bottom: 2rem;
	max-width: var(--apk-content-mobile);
}

.apk-main--landing .apk-app-info__header {
	justify-content: center;
}

.apk-app-info__header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--apk-border);
}

.apk-app-info__header svg { color: var(--apk-blue); }

.apk-app-info__title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
}

.apk-app-info__list { margin: 0; }

.apk-app-info__row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(255,255,255,0.04);
	font-size: 0.8125rem;
}

.apk-app-info__row:last-child { border-bottom: none; }

.apk-app-info__row dt {
	color: var(--apk-text-muted);
	font-weight: 400;
	flex-shrink: 0;
}

.apk-app-info__row dd {
	margin: 0;
	text-align: right;
	font-weight: 500;
	word-break: break-all;
}

/* --- Trust Bar --- */
.apk-trust-bar {
	background: var(--apk-bg-card-solid);
	border-top: 1px solid var(--apk-border);
	border-bottom: 1px solid var(--apk-border);
	padding: 1.5rem 0;
}

.apk-trust-bar__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
	max-width: 800px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.apk-trust-bar__grid {
		grid-template-columns: repeat(4, 1fr);
		text-align: center;
	}

	.apk-trust-bar__item {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

.apk-trust-bar__item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.apk-trust-bar__icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
}

.apk-trust-bar__icon--shield { background: rgba(34,197,94,0.15); color: var(--apk-green); }
.apk-trust-bar__icon--virus { background: rgba(59,130,246,0.15); color: var(--apk-blue); }
.apk-trust-bar__icon--update { background: rgba(34,197,94,0.15); color: var(--apk-green); }
.apk-trust-bar__icon--users { background: rgba(59,130,246,0.15); color: var(--apk-blue); }
.apk-trust-bar__icon--image { background: transparent; overflow: hidden; }
.apk-trust-bar__img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; display: block; }

.apk-trust-bar__item strong {
	display: block;
	font-size: 0.8125rem;
	margin-bottom: 0.125rem;
}

.apk-trust-bar__item span {
	font-size: 0.75rem;
	color: var(--apk-text-muted);
}

/* --- Features --- */
.apk-features {
	padding: 3rem 0;
}

.apk-section-title {
	font-size: clamp(1.25rem, 3vw, 1.5rem);
	margin-bottom: 1.5rem;
}

.apk-section-title span { color: var(--apk-blue); }

.apk-features__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	max-width: var(--apk-content-mobile);
	margin: 0 auto;
}

.apk-main--landing .apk-features__card {
	text-align: center;
}

.apk-main--landing .apk-features__icon {
	margin-left: auto;
	margin-right: auto;
}

.apk-main--landing .apk-features__link {
	text-align: center;
}

.apk-features__card {
	background: var(--apk-bg-card-solid);
	border: 1px solid var(--apk-border);
	border-radius: var(--apk-radius);
	padding: 1.5rem;
	transition: border-color var(--apk-transition), transform var(--apk-transition);
}

.apk-features__card:hover {
	border-color: rgba(34,197,94,0.3);
	transform: translateY(-2px);
}

.apk-features__icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(34,197,94,0.12);
	color: var(--apk-green);
	border-radius: 12px;
	margin-bottom: 1rem;
}
.apk-features__icon--image { background: transparent; overflow: hidden; }
.apk-features__img { width: 48px; height: 48px; object-fit: cover; border-radius: 12px; display: block; }

.apk-features__card h3 {
	font-size: 0.9375rem;
	margin-bottom: 0.5rem;
}

.apk-features__card p {
	font-size: 0.8125rem;
	color: var(--apk-text-muted);
	margin: 0;
}

.apk-features__link {
	margin-top: 1.5rem;
	font-size: 0.875rem;
}

.apk-features__link a { color: var(--apk-green); font-weight: 500; }

/* --- FAQ --- */
.apk-faq {
	padding: 3rem 0;
	width: 100%;
}

.apk-main--landing .apk-faq {
	padding-top: 1rem;
}

.apk-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.apk-faq__item {
	background: var(--apk-bg-card-solid);
	border: 1px solid var(--apk-border);
	border-radius: var(--apk-radius);
	overflow: hidden;
}

.apk-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.apk-faq__question::-webkit-details-marker { display: none; }

.apk-faq__question-text {
	font-weight: 600;
	flex: 1;
}

.apk-faq__chevron {
	flex-shrink: 0;
	color: var(--apk-text-muted);
	transition: transform var(--apk-transition);
}

.apk-faq__item[open] .apk-faq__chevron { transform: rotate(180deg); }

.apk-faq__answer {
	padding: 0 1.25rem 1rem;
}

.apk-faq__answer p {
	font-size: 0.8125rem;
	color: var(--apk-text-muted);
	margin: 0;
	line-height: 1.7;
}

/* --- Download Page --- */
.apk-download {
	padding: 3rem 0 4rem;
	text-align: center;
}

.apk-download__inner {
	max-width: 560px;
	margin: 0 auto;
}

.apk-download__icon-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.apk-download__icon {
	width: 80px;
	height: 80px;
	border-radius: 18px;
	object-fit: cover;
	box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.apk-download__title {
	font-size: clamp(1.5rem, 4vw, 2rem);
	margin-bottom: 0.75rem;
}

.apk-download__desc {
	color: var(--apk-text-muted);
	font-size: 0.9375rem;
	margin-bottom: 2rem;
}

.apk-download__countdown {
	margin-bottom: 1.5rem;
}

.apk-download__countdown-num {
	display: block;
	font-size: 3rem;
	font-weight: 700;
	color: var(--apk-green);
	line-height: 1;
}

.apk-download__countdown-text {
	font-size: 0.875rem;
	color: var(--apk-text-muted);
}

.apk-download__btn {
	margin: 0 auto;
}

.apk-download__mirror {
	margin-top: 1rem;
	font-size: 0.8125rem;
}

.apk-download__steps {
	margin-top: 3rem;
	text-align: left;
	background: var(--apk-bg-card-solid);
	border: 1px solid var(--apk-border);
	border-radius: var(--apk-radius-lg);
	padding: 1.5rem;
}

.apk-download__steps h2 {
	font-size: 1rem;
	margin-bottom: 1rem;
}

.apk-download__steps ol {
	list-style: none;
	counter-reset: steps;
}

.apk-download__steps li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--apk-border);
	font-size: 0.875rem;
	color: var(--apk-text-muted);
}

.apk-download__steps li:last-child { border-bottom: none; }

.apk-download__step-num {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--apk-green);
	color: #fff;
	border-radius: 50%;
	font-size: 0.75rem;
	font-weight: 700;
}

/* --- Footer --- */
.apk-footer-info {
	background: var(--apk-bg-card-solid);
	border-top: 1px solid var(--apk-border);
	padding: 3rem 0 0;
}

.apk-footer-info__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding-bottom: 2rem;
}

@media (min-width: 640px) {
	.apk-footer-info__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
	.apk-footer-info__grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; }
}

.apk-footer-info__about {
	font-size: 0.8125rem;
	color: var(--apk-text-muted);
	margin-bottom: 1rem;
	line-height: 1.7;
}

.apk-footer-info__social {
	display: flex;
	gap: 0.75rem;
}

.apk-footer-info__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(255,255,255,0.06);
	border-radius: 8px;
	color: var(--apk-text-muted);
	transition: background var(--apk-transition), color var(--apk-transition);
}

.apk-footer-info__social a:hover {
	background: var(--apk-green);
	color: #fff;
}

.apk-footer-info__col h3,
.apk-footer-info__newsletter h3 {
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

.apk-footer-info__col ul li { margin-bottom: 0.5rem; }

.apk-footer-info__col a {
	font-size: 0.8125rem;
	color: var(--apk-text-muted);
}

.apk-footer-info__col a:hover { color: var(--apk-green); }

.apk-footer-info__newsletter p {
	font-size: 0.8125rem;
	color: var(--apk-text-muted);
	margin-bottom: 1rem;
}

.apk-footer-info__form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.apk-footer-info__form input[type="email"] {
	padding: 0.625rem 0.875rem;
	background: rgba(255,255,255,0.06);
	border: 1px solid var(--apk-border);
	border-radius: 8px;
	color: var(--apk-text);
	font-family: var(--apk-font);
	font-size: 0.8125rem;
	outline: none;
	transition: border-color var(--apk-transition);
}

.apk-footer-info__form input[type="email"]:focus {
	border-color: var(--apk-green);
}

.apk-footer-info__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1.25rem 0;
	border-top: 1px solid var(--apk-border);
	font-size: 0.75rem;
	color: var(--apk-text-muted);
	text-align: center;
}

@media (min-width: 768px) {
	.apk-footer-info__bottom {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

.apk-footer-info__dmca {
	padding: 0.25rem 0.75rem;
	background: rgba(59,130,246,0.15);
	color: var(--apk-blue-light);
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.6875rem;
}

/* Download page — full-width stacked layout */
.apk-main--download .apk-page-content {
	display: flex;
	flex-direction: column;
}
.apk-entry-content {
	color: var(--apk-text-muted);
	font-size: 0.9375rem;
	line-height: 1.8;
}

.apk-entry-content h2, .apk-entry-content h3 {
	color: var(--apk-text);
	margin-top: 2rem;
}

.apk-main--landing .apk-collection,
.apk-main--landing .apk-bonuses,
.apk-main--landing .apk-register,
.apk-main--landing .apk-testimonials,
.apk-main--landing .apk-key-features,
.apk-main--landing .apk-conclusion {
	width: 100%;
}

.apk-section-desc {
	color: var(--apk-text-muted);
	font-size: 0.9375rem;
	line-height: 1.7;
	text-align: center;
	max-width: 720px;
	margin: 0 auto 2rem;
}

/* --- Table of Contents --- */
.apk-toc {
	padding: 2rem 0;
	background: rgba(15, 23, 42, 0.35);
	border-top: 1px solid var(--apk-border);
	border-bottom: 1px solid var(--apk-border);
}
.apk-toc__inner {
	max-width: var(--apk-content-mobile);
	margin: 0 auto;
}
.apk-toc__title { margin-bottom: 1rem; }
.apk-toc__list {
	list-style: none;
	counter-reset: apk-toc;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-height: 280px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--apk-green) transparent;
}
.apk-toc__list::-webkit-scrollbar { width: 6px; }
.apk-toc__list::-webkit-scrollbar-thumb { background: var(--apk-green); border-radius: 6px; }
.apk-toc__item { margin: 0; }
.apk-toc__item a {
	display: block;
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	color: var(--apk-text-muted);
	font-size: 0.875rem;
	text-decoration: none;
	border: 1px solid transparent;
	transition: color var(--apk-transition), border-color var(--apk-transition), background var(--apk-transition);
}
.apk-toc__item a:hover {
	color: var(--apk-green);
	background: rgba(34, 197, 94, 0.08);
	border-color: rgba(34, 197, 94, 0.2);
}
.apk-toc__item--h3 a { padding-left: 1.5rem; font-size: 0.8125rem; }
.apk-toc__item--h4 a { padding-left: 2.25rem; font-size: 0.8125rem; }
.apk-toc__item--h5 a,
.apk-toc__item--h6 a { padding-left: 3rem; font-size: 0.75rem; }
.apk-toc__empty {
	text-align: center;
	color: var(--apk-text-muted);
	font-size: 0.875rem;
	margin: 0;
}

.apk-section-head { margin-bottom: 0.5rem; }

/* --- Collection --- */
.apk-collection { padding: 3rem 0; }
.apk-collection__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	max-width: var(--apk-content-mobile);
	margin: 0 auto;
}
.apk-collection__card {
	background: var(--apk-bg-card-solid);
	border: 1px solid var(--apk-border);
	border-radius: var(--apk-radius);
	padding: 1.5rem;
	text-align: center;
	transition: border-color var(--apk-transition), transform var(--apk-transition);
}
.apk-collection__card:hover { border-color: rgba(34,197,94,0.3); transform: translateY(-2px); }
.apk-collection__icon {
	width: 48px; height: 48px; margin: 0 auto 1rem;
	display: flex; align-items: center; justify-content: center;
	background: rgba(34,197,94,0.12); color: var(--apk-green); border-radius: 12px;
}
.apk-collection__media { margin: 0 0 1rem; border-radius: 8px; overflow: hidden; }
.apk-collection__img { width: 100%; height: 140px; object-fit: cover; display: block; }
.apk-collection__card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.apk-collection__card p { font-size: 0.8125rem; color: var(--apk-text-muted); margin: 0 0 0.75rem; }
.apk-collection__meta { display: inline-block; font-size: 0.75rem; color: var(--apk-green); font-weight: 600; margin-bottom: 0.5rem; }
.apk-collection__link { font-size: 0.8125rem; color: var(--apk-blue-light); font-weight: 500; }

/* --- Bonuses --- */
.apk-bonuses { padding: 3rem 0; background: rgba(15,23,42,0.5); }
.apk-bonuses__grid {
	display: grid; grid-template-columns: 1fr; gap: 1.25rem;
	max-width: var(--apk-content-mobile); margin: 0 auto;
}
.apk-bonuses__card {
	position: relative; background: var(--apk-bg-card-solid);
	border: 1px solid var(--apk-border); border-radius: var(--apk-radius-lg);
	padding: 2rem 1.5rem 1.5rem; text-align: center;
}
.apk-bonuses__badge {
	position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
	background: var(--apk-green); color: #fff; font-size: 0.6875rem;
	font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 20px; white-space: nowrap;
}
.apk-bonuses__icon { color: var(--apk-green); margin-bottom: 1rem; }
.apk-bonuses__icon--image img,
.apk-bonuses__img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.apk-bonuses__card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.apk-bonuses__amount { font-size: 1.5rem; font-weight: 700; color: var(--apk-green); margin: 0 0 0.75rem; }
.apk-bonuses__desc { font-size: 0.8125rem; color: var(--apk-text-muted); margin: 0 0 1.25rem; line-height: 1.6; }
.apk-bonuses__footer {
	text-align: center; font-size: 0.875rem; color: var(--apk-text-muted);
	line-height: 1.7; max-width: 800px; margin: 2rem auto 0;
}

/* --- Register Steps --- */
.apk-register { padding: 3rem 0; }
.apk-register__steps {
	list-style: none; max-width: var(--apk-content-mobile); margin: 0 auto; padding: 0;
}
.apk-register__step {
	display: flex; gap: 1.25rem; align-items: flex-start;
	padding: 1.25rem 0; border-bottom: 1px solid var(--apk-border);
}
.apk-register__step:last-child { border-bottom: none; }
.apk-register__num {
	flex-shrink: 0; width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	background: var(--apk-green); color: #fff; border-radius: 50%;
	font-weight: 700; font-size: 1rem;
}
.apk-register__media { flex-shrink: 0; width: 80px; height: 80px; border-radius: 12px; overflow: hidden; }
.apk-register__img { width: 80px; height: 80px; object-fit: cover; display: block; }
.apk-register__step h3 { font-size: 1rem; margin-bottom: 0.375rem; }
.apk-register__step p { font-size: 0.875rem; color: var(--apk-text-muted); margin: 0; line-height: 1.6; }
.apk-register__cta { text-align: center; margin-top: 2rem; }

/* --- Testimonials --- */
.apk-testimonials { padding: 3rem 0; background: rgba(15,23,42,0.4); }
.apk-testimonials__grid {
	display: grid; grid-template-columns: 1fr; gap: 1rem;
	max-width: var(--apk-content-mobile); margin: 0 auto;
}
.apk-testimonials__card {
	background: var(--apk-bg-card-solid); border: 1px solid var(--apk-border);
	border-radius: var(--apk-radius); padding: 1.5rem; margin: 0;
}
.apk-testimonials__avatar { margin-bottom: 0.75rem; }
.apk-testimonials__img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; display: block; }
.apk-testimonials__stars { color: #fbbf24; font-size: 0.875rem; margin-bottom: 0.75rem; }
.apk-testimonials__card p { font-size: 0.875rem; color: var(--apk-text-muted); line-height: 1.7; margin: 0 0 1rem; font-style: italic; }
.apk-testimonials__card footer { font-size: 0.8125rem; }
.apk-testimonials__card cite { font-style: normal; font-weight: 600; color: var(--apk-text); }
.apk-testimonials__card span { color: var(--apk-text-muted); margin-left: 0.5rem; }

/* --- Key Features --- */
.apk-key-features { padding: 3rem 0; }
.apk-key-features__grid {
	display: grid; grid-template-columns: 1fr; gap: 1rem;
	max-width: var(--apk-content-mobile); margin: 0 auto;
}
.apk-key-features__item {
	display: flex; gap: 1rem; align-items: flex-start;
	background: var(--apk-bg-card-solid); border: 1px solid var(--apk-border);
	border-radius: var(--apk-radius); padding: 1.25rem;
}
.apk-key-features__icon {
	flex-shrink: 0; width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	background: rgba(34,197,94,0.12); color: var(--apk-green); border-radius: 10px;
}
.apk-key-features__icon--image { background: transparent; overflow: hidden; }
.apk-key-features__img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; display: block; }
.apk-key-features__item h3 { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.apk-key-features__item p { font-size: 0.8125rem; color: var(--apk-text-muted); margin: 0; line-height: 1.6; }

/* --- Conclusion --- */
.apk-conclusion {
	padding: 3rem 0; background: linear-gradient(180deg, transparent, rgba(34,197,94,0.05));
	border-top: 1px solid var(--apk-border);
}
.apk-conclusion__inner {
	max-width: var(--apk-content-mobile); margin: 0 auto; text-align: center;
}
.apk-conclusion__media { margin: 0 auto 1.5rem; max-width: 640px; border-radius: 12px; overflow: hidden; }
.apk-conclusion__img { width: 100%; height: auto; max-height: 320px; object-fit: cover; display: block; }
.apk-conclusion__inner p {
	font-size: 0.9375rem; color: var(--apk-text-muted); line-height: 1.8; margin-bottom: 1.25rem;
}
.apk-conclusion__cta { margin-top: 1.5rem; }

/* Desktop widths for new sections */
@media (min-width: 768px) {
	.apk-collection__grid { grid-template-columns: repeat(2, 1fr); max-width: var(--apk-content-desktop); }
	.apk-bonuses__grid { grid-template-columns: repeat(3, 1fr); max-width: var(--apk-content-desktop); }
	.apk-testimonials__grid { grid-template-columns: repeat(2, 1fr); max-width: var(--apk-content-desktop); }
	.apk-key-features__grid { grid-template-columns: repeat(2, 1fr); max-width: var(--apk-content-desktop); }
	.apk-register__steps, .apk-conclusion__inner { max-width: var(--apk-content-desktop); }
	.apk-toc__inner { max-width: var(--apk-content-desktop); }
}

@media (min-width: 1200px) {
	.apk-collection__grid,
	.apk-bonuses__grid,
	.apk-testimonials__grid,
	.apk-key-features__grid,
	.apk-register__steps,
	.apk-conclusion__inner { max-width: var(--apk-container); }
	.apk-collection__grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- v2: Standard WordPress blocks (Patterns) --- */
.apk-main--landing .wp-block-group.alignfull,
.apk-main--landing .wp-block-cover.alignfull {
	width: 100%;
}

.apk-main--landing .wp-block-cover.apk-hero {
	padding: 2.5rem 0;
}

.apk-main--landing .wp-block-cover.apk-hero .wp-block-cover__inner-container {
	max-width: var(--apk-container);
	margin: 0 auto;
	padding: 0 1.25rem;
}

.apk-main--landing .wp-block-group.apk-hero__grid {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.apk-main--landing .wp-block-button .wp-block-button__link {
	background: var(--apk-green);
	color: #fff;
	border-radius: 10px;
	font-weight: 600;
	padding: 0.625rem 1.125rem;
	box-shadow: 0 2px 10px rgba(34, 197, 94, 0.2);
	transition: background var(--apk-transition), transform var(--apk-transition), box-shadow var(--apk-transition);
}

.apk-main--landing .wp-block-button .wp-block-button__link:hover {
	background: var(--apk-green-hover);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.apk-main--landing .apk-hero__cta .apk-btn__meta {
	margin: 0;
	text-align: left;
	font-size: 0.625rem;
	color: var(--apk-text-muted);
	opacity: 0.85;
}

.apk-main--landing .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.apk-main--landing .wp-block-table td,
.apk-main--landing .wp-block-table th {
	border: 1px solid var(--apk-border);
	padding: 0.625rem 0.875rem;
	font-size: 0.875rem;
}

.apk-main--landing .wp-block-table td:first-child {
	color: var(--apk-text-muted);
	width: 40%;
}

.apk-main--landing .wp-block-details.apk-faq__item {
	background: var(--apk-bg-card-solid);
	border: 1px solid var(--apk-border);
	border-radius: var(--apk-radius);
	margin-bottom: 0.5rem;
}

.apk-main--landing .wp-block-details.apk-faq__item summary {
	padding: 1rem 1.25rem;
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}

.apk-main--landing .wp-block-details.apk-faq__item > p,
.apk-main--landing .wp-block-details.apk-faq__item .wp-block-paragraph {
	padding: 0 1.25rem 1rem;
	color: var(--apk-text-muted);
	margin: 0;
}

.apk-main--landing .wp-block-columns.apk-features__grid,
.apk-main--landing .wp-block-columns.apk-collection__grid,
.apk-main--landing .wp-block-columns.apk-trust-bar__grid {
	gap: 1rem;
}

.apk-main--landing .wp-block-social-links {
	gap: 0.5rem;
}

.apk-main--landing .wp-block-list.apk-hero__trust-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem 1.25rem;
}

.apk-main--landing .wp-block-list.apk-hero__trust-list li {
	font-size: 0.8125rem;
	color: var(--apk-text-muted);
}

@media (min-width: 768px) {
	.apk-main--landing .wp-block-columns.apk-collection__grid {
		flex-wrap: nowrap !important;
	}
	.apk-main--landing .wp-block-columns.apk-collection__grid > .wp-block-column {
		flex-basis: 33.33% !important;
	}
}

/* --- WP block editor front-end reset --- */
.apk-page-content > * { margin-block-start: 0; margin-block-end: 0; }

.apk-site-footer:empty { display: none; }

/* --- Print --- */
@media print {
	.apk-header, .apk-footer-info__form, .apk-header__cta { display: none; }
}
