/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	/* Colors from ThemeManager */
	--primary-action: #007AFF;
	--accent: #34C759;
	--destructive: #FF3B30;
	--warning: #FF9500;
	
	/* Light theme colors */
	--primary-bg: #F9F9F9;
	--secondary-bg: #FFFFFF;
	--tertiary-bg: #F0F0F5;
	--primary-text: #1C1C1E;
	--secondary-text: #8A8A8E;
	
	/* Spacing from ThemeManager */
	--spacing-xxs: 4px;
	--spacing-xs: 8px;
	--spacing-s: 12px;
	--spacing-m: 16px;
	--spacing-l: 20px;
	--spacing-xl: 24px;
	--spacing-xxl: 32px;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
	:root {
		--primary-bg: #1C1C1E;
		--secondary-bg: #2C2C2E;
		--tertiary-bg: #3A3A3C;
		--primary-text: #F2F2F7;
		--secondary-text: #8E8E93;
	}
	
	.features::before {
		background: linear-gradient(90deg, transparent 0%, rgba(52, 199, 89, 0.3) 50%, transparent 100%);
	}
}

html {
	/* Set background on html to extend into safe areas */
	background: linear-gradient(180deg, 
		#FFFFFF 0%, 
		#FFF5F5 10%,
		#F8F9FF 20%, 
		#F0F4FF 30%, 
		#F5F0FF 40%,
		#FFF0F8 50%, 
		#FFF8F0 60%,
		#F0FFF5 70%,
		#F0F8FF 80%,
		#F8F9FF 90%,
		#FFFFFF 100%);
	min-height: 100vh;
	/* Ensure html fills the entire viewport including safe areas */
	min-height: -webkit-fill-available;
	background-attachment: fixed;
	/* Safari iOS specific fix */
	-webkit-touch-callout: default;
	-webkit-user-select: text;
	user-select: text;
}

@media (prefers-color-scheme: dark) {
	html {
		background: linear-gradient(180deg, 
			#1C1C1E 0%, 
			#1a1a2e 10%,
			#1e1a2e 20%, 
			#16213e 30%, 
			#1e163e 40%,
			#2e1630 50%, 
			#2e2516 60%,
			#162e20 70%,
			#16282e 80%,
			#1a1a2e 90%,
			#1C1C1E 100%);
		background-attachment: fixed;
	}
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	background: transparent; /* Let html background show through */
	color: var(--primary-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	min-height: -webkit-fill-available;
	/* Position relative to contain scrollable content */
	position: relative;
	/* Remove padding from body */
	padding: 0;
	margin: 0;
	/* Ensure body fills the viewport */
	width: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	/* iOS Safari specific */
	-webkit-overflow-scrolling: touch;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--spacing-l);
	padding-left: max(var(--spacing-l), env(safe-area-inset-left, var(--spacing-l)));
	padding-right: max(var(--spacing-l), env(safe-area-inset-right, var(--spacing-l)));
}

/* Hero Section */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: var(--spacing-xxl) 0;
	padding-top: calc(var(--spacing-xxl) + env(safe-area-inset-top));
	padding-bottom: calc(var(--spacing-xxl) + env(safe-area-inset-bottom));
	background: transparent;
}


.hero-content {
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}

.app-icon {
	margin-bottom: var(--spacing-xl);
}

.app-icon img {
	width: 80px;
	height: 80px;
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.app-name {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: var(--spacing-xl);
	letter-spacing: -0.5px;
	background: linear-gradient(135deg, #007AFF 0%, #5856D6 50%, #34C759 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-title {
	font-size: 2rem;
	font-weight: 600;
	margin-bottom: var(--spacing-m);
	color: var(--primary-text);
}

.hero-subtitle {
	font-size: 1.25rem;
	color: var(--secondary-text);
	margin-bottom: var(--spacing-xl);
	font-weight: 400;
}

/* Privacy Badge */
.privacy-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--spacing-xs);
	background: linear-gradient(135deg, rgba(52, 199, 89, 0.1) 0%, rgba(88, 86, 214, 0.1) 100%);
	padding: var(--spacing-xs) var(--spacing-m);
	border-radius: 20px;
	margin-bottom: var(--spacing-xxl);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(52, 199, 89, 0.2);
}

.badge-text {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--primary-text);
}

/* App Store Button */
.app-store-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--spacing-xs);
	background: var(--primary-action);
	color: white;
	padding: var(--spacing-m) var(--spacing-xl);
	border-radius: 12px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.app-store-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
}

.app-store-icon {
	width: 20px;
	height: 20px;
}

/* Hero Image */
.hero-image {
	margin-top: var(--spacing-xxl);
}

.hero-image img {
	width: 100%;
	max-width: 400px;
	height: auto;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Features Section */
.features {
	padding: 80px 0;
	padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
	background: transparent;
	position: relative;
}

.features::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(52, 199, 89, 0.2) 50%, transparent 100%);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--spacing-xl);
	margin-top: var(--spacing-xxl);
}

.feature-card {
	padding: var(--spacing-xl);
	border-radius: 16px;
	text-align: center;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.feature-swap {
	background: linear-gradient(135deg, #E8FDF0 0%, #D4F8E0 100%);
	border: 2px solid #34C759;
	box-shadow: 0 8px 24px rgba(52, 199, 89, 0.15);
}

.feature-mindful {
	background: linear-gradient(135deg, #F0E8FF 0%, #E5D9FF 100%);
	border: 2px solid #5856D6;
	box-shadow: 0 8px 24px rgba(88, 86, 214, 0.15);
}

.feature-track {
	background: linear-gradient(135deg, #E8F4FD 0%, #D6E7FF 100%);
	border: 2px solid #007AFF;
	box-shadow: 0 8px 24px rgba(0, 122, 255, 0.15);
}

.feature-card:hover {
	transform: translateY(-6px) scale(1.02);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
	.feature-swap {
		background: linear-gradient(135deg, rgba(52, 199, 89, 0.2) 0%, rgba(52, 199, 89, 0.1) 100%);
		border: 2px solid rgba(52, 199, 89, 0.5);
	}
	
	.feature-mindful {
		background: linear-gradient(135deg, rgba(88, 86, 214, 0.2) 0%, rgba(88, 86, 214, 0.1) 100%);
		border: 2px solid rgba(88, 86, 214, 0.5);
	}
	
	.feature-track {
		background: linear-gradient(135deg, rgba(0, 122, 255, 0.2) 0%, rgba(0, 122, 255, 0.1) 100%);
		border: 2px solid rgba(0, 122, 255, 0.5);
	}
}

.feature-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: var(--spacing-xs);
	color: var(--primary-text);
}

.feature-description {
	font-size: 0.95rem;
	color: var(--secondary-text);
	line-height: 1.6;
	text-align: left;
}

/* How It Works Section */
.how-it-works {
	padding: 80px 0;
	padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
	background: transparent;
	position: relative;
}

.how-it-works::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(88, 86, 214, 0.2) 50%, transparent 100%);
}

@media (prefers-color-scheme: dark) {
	.how-it-works::before {
		background: linear-gradient(90deg, transparent 0%, rgba(88, 86, 214, 0.3) 50%, transparent 100%);
	}
}

.section-title {
	font-size: 2rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: var(--spacing-xxl);
	color: var(--primary-text);
}

.steps {
	max-width: 600px;
	margin: 0 auto;
}

.step {
	display: flex;
	align-items: flex-start;
	gap: var(--spacing-l);
	margin-bottom: var(--spacing-xxl);
}

.step-number {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #34C759 0%, #5856D6 100%);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.125rem;
	box-shadow: 0 4px 12px rgba(88, 86, 214, 0.3);
}

.step-content h4 {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: var(--spacing-xxs);
	color: var(--primary-text);
}

.step-content p {
	font-size: 0.95rem;
	color: var(--secondary-text);
}

/* Graduation Philosophy Section */
.philosophy-section {
	padding: 80px 0;
	background: linear-gradient(135deg, 
		#F0F9FF 0%, 
		#E6F7FF 20%,
		#F0E8FF 40%, 
		#FFF0F6 60%,
		#FFF7E6 80%,
		#F0FFF4 100%);
	position: relative;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.philosophy-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, var(--secondary-text) 50%, transparent 100%);
	opacity: 0.2;
}

.philosophy-content {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
	padding: 0 20px;
}

.philosophy-icon {
	font-size: 4rem;
	margin-bottom: var(--spacing-l);
	filter: grayscale(0%);
}

.philosophy-subtitle {
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--primary-text);
	margin-bottom: var(--spacing-xl);
	letter-spacing: -0.5px;
}

.philosophy-text {
	font-size: 1.125rem;
	line-height: 1.8;
	color: var(--secondary-text);
	margin-bottom: var(--spacing-l);
	text-align: justify;
}

.philosophy-text strong {
	color: var(--primary-text);
	font-weight: 600;
}

.graduation-message {
	margin-top: var(--spacing-xxl);
	padding: var(--spacing-xl);
	background: linear-gradient(135deg, 
		rgba(52, 199, 89, 0.15) 0%, 
		rgba(0, 199, 255, 0.12) 25%, 
		rgba(88, 86, 214, 0.12) 50%, 
		rgba(255, 45, 85, 0.08) 75%, 
		rgba(255, 149, 0, 0.1) 100%);
	border-radius: 16px;
	border: 1px solid transparent;
	background-clip: padding-box;
	position: relative;
}

.graduation-message::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 16px;
	padding: 1px;
	background: linear-gradient(135deg, 
		rgba(52, 199, 89, 0.4) 0%, 
		rgba(0, 122, 255, 0.4) 33%, 
		rgba(88, 86, 214, 0.3) 66%, 
		rgba(255, 149, 0, 0.3) 100%);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.graduation-message p {
	font-size: 1.25rem;
	font-weight: 500;
	color: var(--primary-text);
	line-height: 1.6;
	margin: 0;
	text-align: justify;
}

@media (prefers-color-scheme: dark) {
	.philosophy-section {
		background: linear-gradient(135deg, 
			#1a2332 0%, 
			#16213e 20%,
			#2a1a3e 40%, 
			#3a1a2e 60%,
			#2e2a1a 80%,
			#1a2e22 100%);
		border-top-color: rgba(255, 255, 255, 0.05);
	}
	
	.graduation-message {
		background: linear-gradient(135deg, 
			rgba(52, 199, 89, 0.08) 0%, 
			rgba(0, 199, 255, 0.06) 25%, 
			rgba(147, 51, 234, 0.06) 50%, 
			rgba(255, 45, 85, 0.04) 75%, 
			rgba(255, 149, 0, 0.05) 100%);
	}
	
	.graduation-message::before {
		background: linear-gradient(135deg, 
			rgba(52, 199, 89, 0.25) 0%, 
			rgba(0, 122, 255, 0.25) 33%, 
			rgba(147, 51, 234, 0.2) 66%, 
			rgba(255, 149, 0, 0.2) 100%);
	}
}

@media (max-width: 768px) {
	.philosophy-subtitle {
		font-size: 1.5rem;
	}
	
	.philosophy-text {
		font-size: 1rem;
		text-align: justify;
	}
	
	.graduation-message p {
		font-size: 1.125rem;
	}
	
	.philosophy-icon {
		font-size: 3rem;
	}
}

/* CTA Section */
.cta-section {
	padding: 80px 0;
	padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
	background: linear-gradient(135deg, #F8F9FF 0%, #E8F4FD 50%, #F0E8FF 100%);
	text-align: center;
	position: relative;
}

.cta-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(88, 86, 214, 0.2) 50%, transparent 100%);
}

@media (prefers-color-scheme: dark) {
	.cta-section {
		background: linear-gradient(135deg, #16213e 0%, #1a2332 50%, #2a1a3e 100%);
	}
}

.cta-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: var(--spacing-m);
	background: linear-gradient(135deg, #5856D6 0%, #34C759 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.cta-subtitle {
	font-size: 1.125rem;
	color: var(--secondary-text);
	margin-bottom: var(--spacing-xxl);
}

.app-store-btn-large {
	display: inline-flex;
	align-items: center;
	gap: var(--spacing-xs);
	background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
	color: white;
	padding: var(--spacing-l) var(--spacing-xxl);
	border-radius: 16px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.125rem;
	transition: all 0.3s ease;
	box-shadow: 0 8px 24px rgba(88, 86, 214, 0.3);
}

.app-store-btn-large:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(88, 86, 214, 0.4);
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--spacing-xl);
	max-width: 700px;
	margin: 0 auto;
}

.pricing-card {
	background: var(--primary-bg);
	padding: var(--spacing-xxl);
	border-radius: 16px;
	text-align: center;
	position: relative;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.pricing-card-premium {
	background: linear-gradient(135deg, var(--primary-bg) 0%, var(--tertiary-bg) 100%);
	border: 2px solid var(--primary-action);
	transform: scale(1.05);
}

.premium-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--primary-action);
	color: white;
	padding: var(--spacing-xxs) var(--spacing-m);
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
}

.plan-name {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: var(--spacing-xs);
	color: var(--primary-text);
}

.plan-price {
	font-size: 1.125rem;
	color: var(--secondary-text);
	margin-bottom: var(--spacing-xl);
}

.plan-features {
	list-style: none;
	margin-bottom: var(--spacing-xl);
}

.plan-features li {
	padding: var(--spacing-xs) 0;
	color: var(--primary-text);
	font-size: 0.95rem;
}

.plan-cta {
	display: inline-block;
	width: 100%;
	padding: var(--spacing-m);
	border-radius: 12px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.plan-cta-secondary {
	background: var(--tertiary-bg);
	color: var(--primary-text);
}

.plan-cta-secondary:hover {
	background: var(--secondary-bg);
}

.plan-cta-primary {
	background: var(--primary-action);
	color: white;
	box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.plan-cta-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 122, 255, 0.4);
}

/* Support Section */
.support-section {
	padding: var(--spacing-xxl) var(--spacing-m);
	background: var(--tertiary-bg);
	border-top: 1px solid rgba(142, 142, 147, 0.1);
}

.support-content {
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}

.support-title {
	font-size: 28px;
	font-weight: 600;
	color: var(--primary-text);
	margin-bottom: var(--spacing-s);
}

.coffee-btn {
	margin-top: var(--spacing-xl);
	display: inline-flex;
	align-items: center;
	gap: var(--spacing-xs);
	padding: var(--spacing-m) var(--spacing-xl);
	background: #FFDD00;
	color: #000000;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(255, 221, 0, 0.3);
}

.coffee-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(255, 221, 0, 0.4);
	background: #FFE033;
}

.coffee-icon {
	flex-shrink: 0;
}


@media (prefers-color-scheme: dark) {
	.support-section {
		background: rgba(44, 44, 46, 0.5);
		border-top-color: rgba(142, 142, 147, 0.2);
	}
	
	.coffee-btn {
		background: #FFDD00;
		color: #000000;
	}
	
	.coffee-btn:hover {
		background: #FFE033;
	}
}

/* Footer */
.footer {
	padding: var(--spacing-xxl) 0;
	padding-bottom: calc(var(--spacing-xxl) + env(safe-area-inset-bottom, 0));
	background: transparent;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
	/* Ensure footer extends to bottom on mobile */
	position: relative;
	z-index: 1;
}

@media (prefers-color-scheme: dark) {
	.footer {
		border-top: 1px solid rgba(255, 255, 255, 0.05);
	}
}

.footer-content {
	text-align: center;
}

.footer-links {
	margin-bottom: var(--spacing-m);
}

.footer-links a {
	color: var(--secondary-text);
	text-decoration: none;
	font-size: 0.95rem;
	transition: color 0.3s ease;
}

.footer-links a:hover {
	color: var(--primary-action);
}

.separator {
	margin: 0 var(--spacing-m);
	color: var(--secondary-text);
}

.footer-social {
	display: flex;
	justify-content: center;
	gap: var(--spacing-l);
	margin-bottom: var(--spacing-m);
}

.footer-social a {
	color: var(--secondary-text);
	transition: color 0.3s ease, transform 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.footer-social a:hover {
	color: var(--primary-action);
	transform: translateY(-2px);
}

.footer-social svg {
	width: 24px;
	height: 24px;
}

.footer-copyright {
	color: var(--secondary-text);
	font-size: 0.875rem;
}

/* Mobile Responsive - Mobile First Approach */
@media (max-width: 768px) {
	.hero-title {
		font-size: 2rem;
	}
	
	.hero-subtitle {
		font-size: 1.125rem;
	}
	
	.section-title {
		font-size: 1.75rem;
	}
	
	.features-grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-m);
	}
	
	.pricing-grid {
		grid-template-columns: 1fr;
	}
	
	.pricing-card-premium {
		transform: scale(1);
		margin-top: var(--spacing-xl);
	}
	
	.hero-image img {
		max-width: 300px;
	}
	
	.container {
		padding: 0 var(--spacing-m);
		padding-left: max(var(--spacing-m), env(safe-area-inset-left, var(--spacing-m)));
		padding-right: max(var(--spacing-m), env(safe-area-inset-right, var(--spacing-m)));
	}
}

@media (max-width: 480px) {
	.hero {
		min-height: auto;
		padding: var(--spacing-xl) 0;
		padding-top: calc(var(--spacing-xl) + env(safe-area-inset-top, 0));
		padding-bottom: calc(var(--spacing-xl) + env(safe-area-inset-bottom, 0));
	}
	
	.hero-title {
		font-size: 1.75rem;
	}
	
	.hero-subtitle {
		font-size: 1rem;
	}
	
	.app-icon img {
		width: 60px;
		height: 60px;
	}
	
	.app-store-btn {
		padding: var(--spacing-s) var(--spacing-l);
		font-size: 0.95rem;
	}
	
	.feature-card {
		padding: var(--spacing-m);
	}
	
	.pricing-card {
		padding: var(--spacing-l);
	}
}

/* Loading states */
@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

/* Smooth transitions */
a, button {
	transition: all 0.3s ease;
}

/* Modal Styles */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal-content {
	background: var(--secondary-bg);
	border-radius: 20px;
	width: 100%;
	max-width: 900px;
	height: 85vh;
	max-height: 800px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
	.modal-header {
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}
}

.modal-header h2 {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--primary-text);
	margin: 0;
}

.modal-close {
	background: none;
	border: none;
	font-size: 28px;
	color: var(--secondary-text);
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.modal-close:hover {
	background: rgba(0, 0, 0, 0.05);
	color: var(--primary-text);
}

@media (prefers-color-scheme: dark) {
	.modal-close:hover {
		background: rgba(255, 255, 255, 0.1);
	}
}

.modal-body {
	flex: 1;
	overflow: hidden;
	border-radius: 0 0 20px 20px;
}

.modal-body iframe {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 0 0 20px 20px;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
	.modal {
		padding: 0;
	}
	
	.modal-content {
		height: 100vh;
		max-height: 100vh;
		border-radius: 0;
		max-width: 100%;
		padding-top: env(safe-area-inset-top, 0);
		padding-bottom: env(safe-area-inset-bottom, 0);
	}
	
	.modal-body iframe {
		border-radius: 0;
	}
	
	.modal-header {
		padding: 16px 20px;
	}
}

/* Accessibility */
:focus-visible {
	outline: 2px solid var(--primary-action);
	outline-offset: 2px;
}

/* Social Proof */
.social-proof {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-m);
	margin-bottom: var(--spacing-xl);
	padding: var(--spacing-s) var(--spacing-l);
	background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(88, 86, 214, 0.05) 100%);
	border-radius: 24px;
	border: 1px solid rgba(0, 122, 255, 0.1);
	font-size: 0.95rem;
	color: var(--secondary-text);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.user-count, .rating {
	font-weight: 600;
	background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Problem Statistics Section */
.problem-stats {
	padding: 80px 0;
	padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
	background: transparent;
	position: relative;
}

.problem-stats::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 59, 48, 0.2) 50%, transparent 100%);
}

.problem-stats::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 59, 48, 0.1) 50%, transparent 100%);
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--spacing-xl);
	max-width: 800px;
	margin: 0 auto;
}

.stat-card {
	text-align: center;
	padding: var(--spacing-xl);
	background: linear-gradient(135deg, rgba(255, 59, 48, 0.03) 0%, rgba(255, 149, 0, 0.03) 100%);
	border-radius: 20px;
	border: 1px solid rgba(255, 59, 48, 0.1);
	box-shadow: 0 8px 24px rgba(255, 59, 48, 0.08);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.stat-card::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 59, 48, 0.1) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.stat-card:hover {
	transform: translateY(-6px) scale(1.02);
	box-shadow: 0 16px 40px rgba(255, 59, 48, 0.15);
	border-color: rgba(255, 59, 48, 0.2);
}

.stat-card:hover::before {
	opacity: 1;
}

.stat-number {
	font-size: 3rem;
	font-weight: 700;
	background: linear-gradient(135deg, #FF3B30 0%, #FF9500 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: var(--spacing-xs);
	filter: drop-shadow(0 2px 4px rgba(255, 59, 48, 0.2));
}

.stat-label {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--primary-text);
	margin-bottom: var(--spacing-xxs);
}

.stat-description {
	font-size: 0.875rem;
	color: var(--secondary-text);
	line-height: 1.4;
}

@media (prefers-color-scheme: dark) {
	.problem-stats::before {
		background: linear-gradient(90deg, transparent 0%, rgba(255, 59, 48, 0.3) 50%, transparent 100%);
	}
	
	.stat-card {
		background: linear-gradient(135deg, rgba(255, 59, 48, 0.1) 0%, rgba(255, 149, 0, 0.1) 100%);
		border: 1px solid rgba(255, 59, 48, 0.2);
	}
}

/* Impact Visualization Section */
.impact-section {
	padding: 80px 0;
	padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
	background: transparent;
	position: relative;
}

.impact-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(88, 86, 214, 0.2) 50%, transparent 100%);
}

@media (prefers-color-scheme: dark) {
	.impact-section::before {
		background: linear-gradient(90deg, transparent 0%, rgba(88, 86, 214, 0.3) 50%, transparent 100%);
	}
}

.impact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--spacing-xxl);
	max-width: 900px;
	margin: 0 auto;
}

.impact-card {
	padding: var(--spacing-xl);
	border-radius: 24px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.impact-card.before {
	background: linear-gradient(135deg, #FFE8E8 0%, #FFD4D4 100%);
	border: 2px solid rgba(255, 59, 48, 0.3);
	box-shadow: 0 12px 32px rgba(255, 59, 48, 0.12);
}

.impact-card.after {
	background: linear-gradient(135deg, #E8FDF0 0%, #D4F8E0 100%);
	border: 2px solid rgba(52, 199, 89, 0.3);
	box-shadow: 0 12px 32px rgba(52, 199, 89, 0.12);
}

@media (prefers-color-scheme: dark) {
	.impact-card.before {
		background: linear-gradient(135deg, rgba(255, 59, 48, 0.15) 0%, rgba(255, 59, 48, 0.08) 100%);
		border: 2px solid rgba(255, 59, 48, 0.4);
	}
	
	.impact-card.after {
		background: linear-gradient(135deg, rgba(52, 199, 89, 0.15) 0%, rgba(52, 199, 89, 0.08) 100%);
		border: 2px solid rgba(52, 199, 89, 0.4);
	}
}

.impact-card:hover {
	transform: translateY(-4px) scale(1.02);
}

.impact-card.before:hover {
	box-shadow: 0 16px 40px rgba(255, 59, 48, 0.2);
}

.impact-card.after:hover {
	box-shadow: 0 16px 40px rgba(52, 199, 89, 0.2);
}

.impact-card h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: var(--spacing-l);
	color: var(--primary-text);
}

.impact-card.before h3 {
	background: linear-gradient(135deg, #FF3B30 0%, #FF6B6B 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.impact-card.after h3 {
	background: linear-gradient(135deg, #34C759 0%, #52D869 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.metric-bars {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-m);
}

.metric {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-xxs);
}

.metric-label {
	font-size: 0.875rem;
	color: var(--secondary-text);
	font-weight: 500;
}

.metric-bar {
	width: 100%;
	height: 24px;
	background: var(--tertiary-bg);
	border-radius: 12px;
	overflow: hidden;
	position: relative;
}

.metric-fill {
	height: 100%;
	background: linear-gradient(90deg, #FF3B30 0%, #FF6B6B 100%);
	border-radius: 12px;
	transition: width 1s ease;
}

.metric-bar.success .metric-fill {
	background: linear-gradient(90deg, #34C759 0%, #52D869 100%);
}

.metric-value {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--primary-text);
	text-align: right;
}

.metric-value.success {
	color: var(--accent);
}

/* Focus Score Section */
.focus-score-section {
	padding: 80px 0;
	padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
	background: transparent;
	position: relative;
}

.focus-score-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(0, 122, 255, 0.2) 50%, transparent 100%);
}

@media (prefers-color-scheme: dark) {
	.focus-score-section::before {
		background: linear-gradient(90deg, transparent 0%, rgba(0, 122, 255, 0.3) 50%, transparent 100%);
	}
}

.section-subtitle {
	font-size: 1.125rem;
	color: var(--secondary-text);
	text-align: center;
	margin-bottom: var(--spacing-xxl);
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.score-showcase {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: var(--spacing-xxl);
	max-width: 900px;
	margin: 0 auto;
	align-items: center;
	background: linear-gradient(135deg, rgba(52, 199, 89, 0.03) 0%, rgba(0, 122, 255, 0.03) 50%, rgba(88, 86, 214, 0.03) 100%);
	padding: var(--spacing-xxl);
	border-radius: 32px;
	border: 1px solid rgba(0, 122, 255, 0.1);
	box-shadow: 0 12px 40px rgba(0, 122, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
	.score-showcase {
		background: linear-gradient(135deg, rgba(52, 199, 89, 0.1) 0%, rgba(0, 122, 255, 0.1) 50%, rgba(88, 86, 214, 0.1) 100%);
		border: 1px solid rgba(0, 122, 255, 0.2);
	}
}

.score-visual {
	display: flex;
	justify-content: center;
}

/* Score Container */
.score-container {
	position: relative;
	width: 200px;
	height: 300px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Simple Score Display */
.simple-score {
	position: relative;
	width: 200px;
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.score-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	z-index: 2;
}

.score-number {
	font-size: 3rem;
	font-weight: 700;
	background: linear-gradient(135deg, #34C759 0%, #007AFF 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1;
	margin-bottom: 8px;
}

.score-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--secondary-text);
}

.progress-ring {
	position: absolute;
	top: 0;
	left: 0;
	filter: drop-shadow(0 4px 12px rgba(0, 122, 255, 0.2));
}

/* Split Scores View */
.split-scores {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 200px;
	height: 250px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease 0.3s; /* Delayed fade out */
}

.split-scores .simple-score {
	width: 160px;
	height: 160px;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.split-scores .score-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	z-index: 2;
}

.split-scores .progress-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.split-scores .score-number {
	font-size: 2.4rem;
	line-height: 1;
	margin-bottom: 6px;
}

.split-scores .score-label {
	font-size: 0.8rem;
}

/* Focus Score Styling */
.focus-score .score-number {
	background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.focus-score .progress-ring {
	filter: drop-shadow(0 4px 12px rgba(0, 122, 255, 0.2));
}

/* Swap Score Styling */
.swap-score .score-number {
	background: linear-gradient(135deg, #34C759 0%, #52D869 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.swap-score .progress-ring {
	filter: drop-shadow(0 4px 12px rgba(52, 199, 89, 0.2));
}

/* Single View (default) */
.single-view {
	opacity: 1;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(1);
	transition: opacity 0.5s ease-in, transform 0.5s ease-in;
	transition-delay: 0.5s; /* Wait for circles to merge */
}

/* Initial state - circles hidden at center */
.focus-score {
	transform: translateY(0) scale(0.95);
	opacity: 0;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
	            opacity 0.4s ease-in 0.1s; /* Fade out with delay */
}

.swap-score {
	transform: translateY(0) scale(0.95);
	opacity: 0;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
	            opacity 0.4s ease-in 0.1s; /* Fade out with delay */
}

/* Hover States - Split */
.score-container:hover .single-view {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.9);
	pointer-events: none;
	transition-delay: 0s; /* No delay when splitting */
	transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.score-container:hover .split-scores {
	opacity: 1;
	pointer-events: all;
	transition: opacity 0.2s ease-out 0s; /* Immediate fade in on hover */
}

/* Split animation - circles move apart */
.score-container:hover .focus-score {
	transform: translateY(-22px) scale(1);
	opacity: 1;
	transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
	            opacity 0.4s ease-out 0.2s; /* Small delay for opacity */
}

.score-container:hover .swap-score {
	transform: translateY(22px) scale(1);
	opacity: 1;
	transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), 
	            opacity 0.4s ease-out 0.2s; /* Small delay for opacity */
}

.score-details {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.score-details h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: var(--spacing-l);
	color: var(--primary-text);
	text-align: left;
}

.score-features {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-s);
	padding: 0;
	margin: 0;
}

.score-features li {
	padding-left: var(--spacing-xl);
	padding-right: var(--spacing-m);
	position: relative;
	color: var(--primary-text);
	line-height: 1.5;
	padding-top: var(--spacing-xs);
	padding-bottom: var(--spacing-xs);
	background: linear-gradient(90deg, rgba(0, 122, 255, 0.02) 0%, transparent 100%);
	border-radius: 8px;
	transition: all 0.3s ease;
	font-size: 0.95rem;
}

.score-features li:hover {
	background: linear-gradient(90deg, rgba(0, 122, 255, 0.05) 0%, transparent 100%);
	transform: translateX(4px);
}

.score-features li::before {
	content: "•";
	position: absolute;
	left: 12px;
	color: var(--secondary-text);
}

/* Expanded Features Grid */
.features-grid.expanded {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--spacing-xl);
}

.feature-icon {
	font-size: 2rem;
	margin-bottom: var(--spacing-m);
}

.feature-zones {
	background: linear-gradient(135deg, #FFE8E8 0%, #FFD4D4 100%);
	border: 2px solid #FF3B30;
	box-shadow: 0 8px 24px rgba(255, 59, 48, 0.15);
}

.feature-manual {
	background: linear-gradient(135deg, #FFF4E8 0%, #FFE7D4 100%);
	border: 2px solid #FF9500;
	box-shadow: 0 8px 24px rgba(255, 149, 0, 0.15);
}

.feature-override {
	background: linear-gradient(135deg, #F4E8FF 0%, #E9D9FF 100%);
	border: 2px solid #AF52DE;
	box-shadow: 0 8px 24px rgba(175, 82, 222, 0.15);
}

@media (prefers-color-scheme: dark) {
	.feature-zones {
		background: linear-gradient(135deg, rgba(255, 59, 48, 0.2) 0%, rgba(255, 59, 48, 0.1) 100%);
		border: 2px solid rgba(255, 59, 48, 0.5);
	}
	
	.feature-manual {
		background: linear-gradient(135deg, rgba(255, 149, 0, 0.2) 0%, rgba(255, 149, 0, 0.1) 100%);
		border: 2px solid rgba(255, 149, 0, 0.5);
	}
	
	.feature-override {
		background: linear-gradient(135deg, rgba(175, 82, 222, 0.2) 0%, rgba(175, 82, 222, 0.1) 100%);
		border: 2px solid rgba(175, 82, 222, 0.5);
	}
}

/* Analytics Preview Section */
.analytics-preview {
	padding: 80px 0;
	padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
	background: transparent;
	position: relative;
}

.analytics-preview::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(0, 122, 255, 0.2) 50%, transparent 100%);
}

@media (prefers-color-scheme: dark) {
	.analytics-preview::before {
		background: linear-gradient(90deg, transparent 0%, rgba(0, 122, 255, 0.3) 50%, transparent 100%);
	}
}

.analytics-showcase {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: var(--spacing-xxl);
	max-width: 900px;
	margin: 0 auto;
}

.analytics-card {
	background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FF 100%);
	padding: var(--spacing-xl);
	border-radius: 24px;
	border: 1px solid rgba(0, 122, 255, 0.1);
	box-shadow: 0 12px 32px rgba(0, 122, 255, 0.08);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

@media (prefers-color-scheme: dark) {
	.analytics-card {
		background: linear-gradient(135deg, var(--secondary-bg) 0%, rgba(0, 122, 255, 0.05) 100%);
		border: 1px solid rgba(0, 122, 255, 0.2);
	}
}

.analytics-card::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(0, 122, 255, 0.05) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.analytics-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(0, 122, 255, 0.12);
}

.analytics-card:hover::before {
	opacity: 1;
}

.analytics-card h3 {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: var(--spacing-l);
	background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.chart-container {
	width: 100%;
	height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.comparison-bars {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-m);
}

.comparison-item {
	display: grid;
	grid-template-columns: 80px 1fr 60px;
	align-items: center;
	gap: var(--spacing-m);
}

.comparison-item .app-name {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--primary-text);
}

.usage-bar {
	position: relative;
	height: 24px;
	background: var(--tertiary-bg);
	border-radius: 12px;
	overflow: hidden;
}

.usage-before {
	position: absolute;
	height: 100%;
	background: rgba(255, 59, 48, 0.3);
	border-radius: 12px;
}

.usage-after {
	position: absolute;
	height: 100%;
	background: linear-gradient(90deg, #FF3B30 0%, #FF6B6B 100%);
	border-radius: 12px;
}

.usage-bar.productive .usage-before {
	background: rgba(52, 199, 89, 0.3);
}

.usage-bar.productive .usage-after {
	background: linear-gradient(90deg, #34C759 0%, #52D869 100%);
}

.reduction {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--destructive);
	text-align: right;
}

.increase {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--accent);
	text-align: right;
}

/* FAQ Section */
.faq-section {
	padding: 80px 0;
	padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
	background: transparent;
	position: relative;
}

.faq-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 149, 0, 0.2) 50%, transparent 100%);
}

@media (prefers-color-scheme: dark) {
	.faq-section::before {
		background: linear-gradient(90deg, transparent 0%, rgba(255, 149, 0, 0.3) 50%, transparent 100%);
	}
}

.faq-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: var(--spacing-xl);
	max-width: 1000px;
	margin: 0 auto;
}

.faq-item {
	background: linear-gradient(135deg, rgba(88, 86, 214, 0.03) 0%, rgba(0, 122, 255, 0.03) 100%);
	padding: var(--spacing-xl);
	border-radius: 20px;
	border: 1px solid rgba(88, 86, 214, 0.1);
	box-shadow: 0 8px 24px rgba(88, 86, 214, 0.08);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

@media (prefers-color-scheme: dark) {
	.faq-item {
		background: linear-gradient(135deg, rgba(88, 86, 214, 0.1) 0%, rgba(0, 122, 255, 0.1) 100%);
		border: 1px solid rgba(88, 86, 214, 0.2);
	}
}

.faq-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(180deg, #5856D6 0%, #007AFF 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.faq-item:hover {
	transform: translateY(-4px) translateX(2px);
	box-shadow: 0 12px 32px rgba(88, 86, 214, 0.15);
	border-color: rgba(88, 86, 214, 0.2);
}

.faq-item:hover::before {
	opacity: 1;
}

.faq-item h3 {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: var(--spacing-m);
	background: linear-gradient(135deg, #5856D6 0%, #007AFF 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.faq-item p {
	font-size: 0.95rem;
	color: var(--primary-text);
	line-height: 1.6;
	opacity: 0.9;
}

/* CTA Note */
.cta-note {
	margin-top: var(--spacing-m);
	font-size: 0.875rem;
	color: var(--secondary-text);
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
	.score-showcase {
		grid-template-columns: 1fr;
	}
	
	.analytics-showcase {
		grid-template-columns: 1fr;
	}
	
	.faq-grid {
		grid-template-columns: 1fr;
	}
	
	.impact-grid {
		grid-template-columns: 1fr;
	}
	
	.stat-number {
		font-size: 2rem;
	}
	
	.score-number {
		font-size: 2rem;
	}
}

@media (max-width: 480px) {
	.stats-grid {
		grid-template-columns: 1fr;
	}
	
	.comparison-item {
		grid-template-columns: 70px 1fr 50px;
		gap: var(--spacing-s);
	}
	
	.faq-grid {
		gap: var(--spacing-m);
	}
}

/* Print styles */
@media print {
	.hero {
		min-height: auto;
	}
	
	.app-store-btn {
		display: none;
	}
	
	.modal {
		display: none;
	}
}

/* iOS Safe Area Support - Ensure full coverage */
@supports (padding-top: env(safe-area-inset-top)) {
	/* Create a background wrapper that extends into safe areas */
	body::after {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: -2;
		background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FF 25%, #F0F4FF 50%, #F8F9FF 75%, #FFFFFF 100%);
		/* Extend beyond safe areas */
		width: 100vw;
		height: 100vh;
		/* Use larger height to ensure coverage */
		height: calc(100vh + env(safe-area-inset-bottom, 0));
		transform: translateY(calc(-1 * env(safe-area-inset-bottom, 0) / 2));
		pointer-events: none;
	}
	
	/* Dark mode background */
	@media (prefers-color-scheme: dark) {
		body::after {
			background: linear-gradient(180deg, #1C1C1E 0%, #1a1a2e 25%, #16213e 50%, #1a1a2e 75%, #1C1C1E 100%);
		}
	}
	
	/* Ensure sections fill safe areas on mobile */
	@media (max-width: 768px) {
		html {
			/* Allow scrolling beyond safe area */
			overflow: hidden;
		}
		
		body {
			/* Extend body to fill safe areas */
			min-height: calc(100vh + env(safe-area-inset-bottom, 0));
			padding-bottom: env(safe-area-inset-bottom, 0);
		}
		
		/* Special handling for footer to ensure coverage */
		.footer {
			/* Add extra padding to push content into safe area */
			padding-bottom: calc(var(--spacing-xxl) + env(safe-area-inset-bottom, 20px));
			/* Add background to footer for safe area coverage */
			position: relative;
		}
		
		/* Add a pseudo element to footer to fill safe area */
		.footer::after {
			content: '';
			position: absolute;
			left: 0;
			right: 0;
			bottom: calc(-1 * env(safe-area-inset-bottom, 0));
			height: env(safe-area-inset-bottom, 0);
			background: inherit;
		}
	}
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
	/* iOS Safari specific styles */
	html {
		/* Use 100% height for Safari */
		height: 100%;
		position: fixed;
		width: 100%;
		overflow: hidden;
	}
	
	body {
		/* Ensure body fills viewport in Safari */
		height: 100%;
		width: 100%;
		position: fixed;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
		/* Add padding for safe area in Safari */
		padding-bottom: constant(safe-area-inset-bottom);
		padding-bottom: env(safe-area-inset-bottom, 0);
		box-sizing: border-box;
	}
	
	/* Create a scrollable content wrapper */
	body > * {
		position: relative;
		z-index: 1;
	}
	
	/* Make last section extend to bottom */
	.footer {
		/* Add extra padding to compensate for safe area */
		padding-bottom: calc(var(--spacing-xxl) + env(safe-area-inset-bottom, 0) + 40px);
		/* Add background color to ensure coverage */
		background: linear-gradient(180deg, transparent 0%, #FFFFFF 100%);
		position: relative;
		z-index: 1;
	}
	
	/* Add extra element after footer to fill space */
	.footer::after {
		content: '';
		display: block;
		height: 100px;
		background: #FFFFFF;
		position: absolute;
		left: 0;
		right: 0;
		bottom: -100px;
		z-index: -1;
	}
	
	@media (prefers-color-scheme: dark) {
		.footer {
			background: linear-gradient(180deg, transparent 0%, #1C1C1E 100%);
		}
		
		.footer::after {
			background: #1C1C1E;
		}
	}
}