/* ============================================
 * App Page Styles
 * Scoped to .app-page
 * ============================================ */

/* Problem Section */
.app-problem {
	position: relative;
	padding: 100px 0;
	background: #ffffff;
	overflow: hidden;
}

/* Glowing blob behind the problem section */
.app-problem::before {
	content: '';
	position: absolute;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0.18;
	mix-blend-mode: multiply;
	filter: blur(64px);
	animation: appProblemBlob 12s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}

@keyframes appProblemBlob {
	0%   { background: #F9B233; transform: translate(-50%, -50%) scale(1); }
	25%  { background: #EE728E; transform: translate(-45%, -55%) scale(1.1); }
	50%  { background: #8CD933; transform: translate(-50%, -50%) scale(0.95); }
	75%  { background: #4A9FDB; transform: translate(-55%, -45%) scale(1.05); }
	100% { background: #F9B233; transform: translate(-50%, -50%) scale(1); }
}

.app-problem > * {
	position: relative;
	z-index: 1;
}

.app-problem .section__heading {
	text-align: center;
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	line-height: 1.15;
	max-width: 920px;
	margin: 0 auto;
}

.app-problem__content {
	max-width: 640px;
	margin: 40px auto 0;
	text-align: center;
}

.app-problem__content p {
	font-size: 20px;
	line-height: 1.7;
	color: #2D3748;
	margin: 0 0 25px;
}

.app-problem__content strong {
	color: #569E03;
	font-weight: 800;
}

/* App Features */
.app-features {
	padding: 100px 0;
	background: #fff;
}

.app-features .sfd-container {
	/* Two-column card grid; heading spans full width */
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}

.app-features .section__heading {
	grid-column: 1 / -1;
	text-align: center;
	margin-bottom: 24px;
}

.app-feature {
	padding: 40px 36px;
	background: #ffffff;
	border: 1px solid #E2E8F0;
	border-radius: 24px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
	display: flex;
	gap: 24px;
	position: relative;
	overflow: hidden;
	min-height: 350px;
}

.app-feature:hover {
	border-color: #CBD5E0;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
}

.app-feature__content {
	max-width: none;
	flex: 1;
	min-width: 0;
	padding-right: 200px;
}

.app-feature__name {
	font-size: 26px;
	font-weight: 900;
	line-height: 1.2;
	margin: 0 0 16px;
	color: #1A202C;
}

.app-feature__desc {
	font-size: 1.125rem;
	line-height: 1.7;
	color: #4A5568;
	margin: 0;
}

/* Phone mock image — floats detached from the card, positioned bottom right */
.app-feature__mock {
	position: absolute;
	width: 130px;
	flex-shrink: 0;
	margin: 0 !important;
	z-index: 1;
	/* Bottom right, pulled left and up slightly */
	bottom: 30px;
	right: 40px;
}

/* Faint coloured circle behind the mock image — larger, phone sits inside it */
.app-feature__mock::before {
	content: '';
	position: absolute;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	/* Circle offset so the phone sits inside it, extending below and right */
	bottom: -30px;
	right: -30px;
	z-index: -1;
	opacity: 0.12;
	pointer-events: none;
}

/* Cycle site colours for each feature card — brand colours only */
.app-feature:nth-child(1) .app-feature__mock::before { background: #8CD933; }  /* green */
.app-feature:nth-child(2) .app-feature__mock::before { background: #F34188; }  /* pink */
.app-feature:nth-child(3) .app-feature__mock::before { background: #FBAB04; }  /* orange */
.app-feature:nth-child(4) .app-feature__mock::before { background: #EE728E; }  /* rose */
.app-feature:nth-child(5) .app-feature__mock::before { background: #8CD933; }  /* green */
.app-feature:nth-child(6) .app-feature__mock::before { background: #F9B233; }  /* gold */

.app-feature__mock img {
	display: block;
	width: 100%;
	height: auto;
	position: relative;
	z-index: 1;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* Included */
.app-included {
	padding: 100px 0;
	background: #F7FAFC;
}

.app-included__content {
	max-width: 700px;
	margin: 30px auto 60px;
	text-align: center;
}

.app-included__content p {
	font-size: 18px;
	line-height: 1.7;
	color: #2D3748;
	margin: 0;
}

.app-included__tiers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-top: 50px;
}

.app-included__tier {
	background: #fff;
	padding: 40px 30px;
	border-radius: 12px;
	border: 2px solid #E2E8F0;
	text-align: center;
	transition: all 0.2s ease;
}

.app-included__tier:hover {
	border-color: #CBD5E0;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.app-included__tier--highlight {
	background: linear-gradient(135deg, #569E03 0%, #8CD933 100%);
	border-color: #569E03;
	color: #fff;
}

.app-included__tier-name {
	font-size: 28px;
	font-weight: 900;
	margin: 0 0 15px;
	color: #1A202C;
}

.app-included__tier--highlight .app-included__tier-name {
	color: #fff;
}

.app-included__tier-desc {
	font-size: 16px;
	line-height: 1.6;
	color: #4A5568;
	margin: 0;
}

.app-included__tier--highlight .app-included__tier-desc {
	color: rgba(255,255,255,0.9);
}

.app-included__cta {
	text-align: center;
	margin-top: 50px;
}

/* Testimonial, staggered quote cards */
.app-testimonial {
	padding: 80px 0;
	background: #fff;
	position: relative;
	overflow: hidden;
}

/* Subtle blurred gradient from bottom-left */
.app-testimonial::before {
	content: '';
	position: absolute;
	width: 500px;
	height: 500px;
	border-radius: 50%;
	bottom: 0;
	left: 0;
	transform: translate(-30%, 30%);
	background: radial-gradient(circle, rgba(140, 217, 51, 0.12) 0%, transparent 70%);
	filter: blur(60px);
	pointer-events: none;
	z-index: 0;
}

.app-testimonial > * {
	position: relative;
	z-index: 1;
}

.app-testimonial__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 50px;
	align-items: start;
}

.app-testimonial__quote {
	background: #ffffff;
	padding: 40px;
	border-radius: 8px;
	border: 1px solid #f0f0f0;
	box-shadow: 6px 6px 0 rgba(0,0,0,0.08);
	position: relative;
	margin: 0;
	min-height: 315px;
}

.app-testimonial__quote--offset {
	margin-top: 40px;
}

.app-testimonial__quote p {
	font-size: 18px;
	line-height: 1.7;
	font-style: italic;
	color: #2D3748;
	margin: 0 0 24px;
	position: relative;
	z-index: 1;
}

.app-testimonial__attr {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	font-style: normal;
	position: relative;
	z-index: 1;
}

.app-testimonial__avatar {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

/* Face-crop avatar — zooms in on the face area of full-body success story photos */
.app-testimonial__avatar--face {
	object-fit: cover;
	object-position: center 10%;
}

/* Initials fallback when no photo is available */
.app-testimonial__avatar--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #E2E8F0;
	color: #569E03;
	font-weight: 800;
	font-size: 18px;
	flex-shrink: 0;
}

.app-testimonial__attr-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.app-testimonial__name {
	font-size: 18px;
	font-weight: 700;
	color: #569E03;
}

.app-testimonial__result {
	font-size: 15px;
	color: #718096;
}

/* After image — result photo below the testimonial footer */
.app-testimonial__after {
	display: block;
	width: 100%;
	max-width: 120px;
	height: auto;
	border-radius: 12px;
	margin-top: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet landscape / small desktop */
@media (max-width: 1100px) {
	.app-features .sfd-container {
		gap: 24px;
	}

	.app-feature {
		padding: 32px 28px;
		gap: 20px;
	}

	.app-feature__name {
		font-size: 22px;
	}

	.app-feature__content {
		padding-right: 80px;
	}

	.app-feature__mock {
		width: 115px;
		bottom: 24px;
		right: 32px;
	}

	.app-feature__mock::before {
		width: 190px;
		height: 190px;
		bottom: -25px;
		right: -25px;
	}

	.app-testimonial__grid {
		gap: 20px;
	}

	.app-testimonial__quote {
		padding: 32px;
	}
}

/* Ensure containers have horizontal padding on all screens */
.app-problem .sfd-container,
.app-features .sfd-container,
.app-testimonial .sfd-container {
	padding-left: 24px;
	padding-right: 24px;
}

@media (max-width: 640px) {
	.app-problem .sfd-container,
	.app-features .sfd-container,
	.app-testimonial .sfd-container {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* Tablet portrait */
@media (max-width: 968px) {
	.app-features .sfd-container {
		grid-template-columns: 1fr;
	}

	.app-feature {
		padding: 28px 24px;
	}

	.app-feature__content {
		padding-right: 80px;
	}

	.app-feature__name {
		font-size: 24px;
	}

	.app-feature__mock {
		width: 115px;
		bottom: 24px;
		right: 32px;
	}

	.app-feature__mock::before {
		width: 190px;
		height: 190px;
		bottom: -25px;
		right: -25px;
	}

	.app-included__tiers {
		grid-template-columns: 1fr;
	}

	.app-testimonial__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.app-testimonial__quote--offset {
		margin-top: 0;
	}

	.app-testimonial__quote {
		padding: 28px 24px;
	}

	.app-testimonial__quote p {
		font-size: 16px;
	}

	.app-problem {
		padding: 70px 0;
	}

	.app-features {
		padding: 70px 0;
	}

	.app-testimonial {
		padding: 60px 0;
	}
}

/* Small tablet - 2-column testimonial grid */
@media (max-width: 820px) and (min-width: 641px) {
	.app-testimonial__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile large */
@media (max-width: 640px) {
	.app-problem {
		padding: 50px 0;
	}

	.app-problem__content {
		margin-top: 28px;
	}

	.app-problem__content p {
		font-size: 18px;
		margin-bottom: 20px;
	}

	.app-features {
		padding: 50px 0;
	}

	.app-features .sfd-container {
		gap: 20px;
	}

	.app-feature {
		flex-direction: column;
		gap: 16px;
		padding: 24px 20px;
		/* Ensure enough bottom padding so the mock image doesn't overlap text */
		padding-bottom: 140px;
	}

	.app-feature__content {
		padding-right: 0;
	}

	.app-feature__name {
		font-size: 22px;
		margin-bottom: 12px;
	}

	.app-feature__desc {
		font-size: 1rem;
		max-width: 200px;
	}

	.app-feature__mock {
		width: 100px;
		bottom: 20px;
		right: 24px;
	}

	.app-feature__mock::before {
		width: 170px;
		height: 170px;
		bottom: -20px;
		right: -20px;
	}

	.app-testimonial {
		padding: 40px 0;
	}

	.app-testimonial__grid {
		margin-top: 30px;
		gap: 16px;
	}

	.app-testimonial__quote {
		padding: 24px 20px;
	}

	.app-testimonial__quote p {
		font-size: 15px;
		margin-bottom: 18px;
	}

	.app-testimonial__name {
		font-size: 16px;
	}

	.app-testimonial__result {
		font-size: 14px;
	}
}

/* Mobile small */
@media (max-width: 400px) {
	.app-feature {
		padding: 20px 16px;
		padding-bottom: 90px;
	}

	.app-feature__name {
		font-size: 20px;
	}

	.app-feature__mock {
		width: 90px;
		bottom: 16px;
		right: 20px;
	}

	.app-feature__mock::before {
		width: 150px;
		height: 150px;
		bottom: -15px;
		right: -15px;
	}

	.app-problem__content p {
		font-size: 16px;
	}

	.app-testimonial__quote {
		padding: 20px 16px;
	}
}

/* ============================================
   FAQ SECTION - HEADER WITH VIEW ALL LINK
   ============================================ */

.sfd-faq-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	position: relative;
}

/* Three decorative circles behind the FAQ heading — no borders, different sizes */
.sfd-faq-header .section__heading {
	position: relative;
}

.sfd-faq-header .section__heading::before {
	content: '';
	position: absolute;
	left: -20px;
	top: -24px;
	width: 80px;
	height: 80px;
	pointer-events: none;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='100' viewBox='0 0 200 100'%3E%3Ccircle cx='40' cy='40' r='40' fill='%23EE728E' opacity='0.2'/%3E%3Ccircle cx='110' cy='50' r='50' fill='%234A9FDB' opacity='0.12'/%3E%3Ccircle cx='175' cy='30' r='28' fill='%238CD933' opacity='0.18'/%3E%3C/svg%3E");
}

.sfd-faq-heading {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0;
	text-align: left;
}

.sfd-faq-view-all {
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.15s;
	color: inherit;
}

.sfd-faq-view-all:hover {
	opacity: 0.75;
	text-decoration: underline;
}

@media (max-width: 640px) {
	.sfd-faq-heading {
		font-size: 1.4rem;
	}
}
