/* Base Styles using Inter font and Light Theme (Nature Preset) */
:root {
	--bg-color: #F8F8F8;
	/* Light gray page background to make white card pop */
	--card-bg: #FFFFFF;
	--text-primary: #000000;
	--text-secondary: #000000;
	/* Opacity handled in classes */

	/* Nature Palette (Light) - Exact Hex Codes */
	--color-passed: #2196F3;
	--color-current: #4CAF50;
	--color-future: #E0E0E0;

	--font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Rounded", sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--bg-color);
	color: var(--text-primary);
	font-family: var(--font-family);
	line-height: title;
	display: flex;
	justify-content: center;
	min-height: 100vh;
}

.container {
	width: 100%;
	max-width: 900px;
	padding: 3rem 1.5rem;
	display: flex;
	flex-direction: column;
}

/* Header & Branding */
header {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 4rem;
	text-align: center;
	animation: fadeInDown 0.8s ease-out;
}

.app-icon {
	width: 120px;
	height: 120px;
	border-radius: 26px;
	margin-bottom: 1.5rem;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
	object-fit: cover;
	transition: transform 0.3s ease;
}

.app-icon:hover {
	transform: scale(1.05) rotate(2deg);
}

h1 {
	font-size: 3rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	margin-bottom: 0.75rem;
	line-height: 1.1;
	background: linear-gradient(135deg, #000 0%, #444 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.tagline {
	color: rgba(0, 0, 0, 0.6);
	font-size: 1.25rem;
	max-width: 500px;
	margin: 0 auto;
	font-weight: 500;
	line-height: 1.4;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Hero Section */
.hero {
	text-align: center;
	margin-bottom: 3rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* 
   Progress Card - Replicating iOS 'progressCard' view
   ContentView.swift lines 79-147
*/
.progress-card {
	background-color: var(--card-bg);
	border-radius: 24px;
	padding: 24px 20px 20px 20px;
	/* Top padding slightly more to balance visual weight */
	width: 100%;
	max-width: 380px;
	/* Approximate mobile width */
	margin: 1.5rem auto 2.5rem;

	/* Shadow: color: palette.text.opacity(0.08), radius: 16, x: 0, y: 8 */
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);

	/* Border: palette.text.opacity(0.05), width: 1 */
	border: 1px solid rgba(0, 0, 0, 0.05);

	display: flex;
	flex-direction: column;
	gap: 16px;
	/* VStack spacing */
}

/* Year Progress Visualization */
.dots-container {
	min-height: 280px;
	/* Changed from fixed height to min-height */
	padding: 4px 8px;
	/* Added some top/bottom padding to the container itself */
	display: flex;
	align-items: center;
	justify-content: center;
}

.dots-grid {
	display: grid;
	grid-template-columns: repeat(20, 1fr);
	/* grid-template-rows: repeat(19, 1fr);  365/20 ~= 18.25 rows */
	gap: 6px;
	/* Reduced gap to fit 280px height if needed, swift says spacing: 14 which is huge? */
	/* Swift code: dotRadius: 5 (diam 10), spacing: 14. 
       Grid width = (20-1)*14 = 266 + 10 = 276. Fits in 320-380 width.
       Let's try to match visual ratio */
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--color-future);
}

.dot.passed {
	background-color: var(--color-passed);
}

.dot.current {
	background-color: var(--color-current);
	transform: scale(1.1);
}

/* Info Row: Percentage & Days Left */
.info-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	/* Center vertically */
	padding: 0 8px;
	/* padding horizontal: 8 */
}

.percentage-group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	/* spacing: 2 */
}

.percentage-text {
	/* font: system(size: 36, weight: .bold, design: .rounded) */
	font-size: 36px;
	font-weight: 700;
	color: var(--color-passed);
	line-height: 1;
	font-family: "SF Pro Rounded", "Inter", sans-serif;
	/* Try to get rounded look */
}

.completed-label {
	/* font: caption (approx 12px), weight: medium */
	font-size: 13px;
	font-weight: 500;
	color: rgba(0, 0, 0, 0.5);
	/* opacity 0.5 */
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.days-left-text {
	/* font: subheadline (approx 15px), weight: medium */
	font-size: 16px;
	font-weight: 500;
	color: var(--text-primary);
}

/* Progress Bar */
.progress-bar-container {
	height: 12px;
	margin: 0 8px;
	/* padding horizontal: 8 */
	position: relative;
	border-radius: 6px;
	background-color: var(--color-future);
	overflow: hidden;
}

.progress-bar-fill {
	height: 100%;
	border-radius: 6px;
	width: 0%;
	/* Linear gradient passed -> current */
	background: linear-gradient(90deg, var(--color-passed), var(--color-current));
	transition: width 1s ease-out;
}

/* Buttons stacked vertically */
.download-buttons {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: center;
	margin-top: 1rem;
}

.download-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	background-color: #000000;
	color: white;
	text-decoration: none;
	padding: 12px 32px;
	border-radius: 100px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: all 0.2s ease;
	width: 220px;
	/* Fixed width for alignment */
}

.download-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
	background-color: #222;
}

.download-button svg {
	flex-shrink: 0;
}

/* Features */
.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-bottom: 4rem;
	width: 100%;
}

.feature-card {
	background-color: var(--card-bg);
	padding: 1.5rem;
	border-radius: 18px;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
	margin-bottom: 0.5rem;
	font-size: 1.1rem;
	color: var(--color-current);
}

.feature-card p {
	color: rgba(0, 0, 0, 0.6);
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Footer */
footer {
	text-align: center;
	color: rgba(0, 0, 0, 0.5);
	font-size: 0.9rem;
	margin-top: auto;
	padding-top: 2rem;
	border-top: 1px solid #EAEAEA;
	width: 100%;
}

.footer-links {
	margin-bottom: 1rem;
	display: flex;
	justify-content: center;
	gap: 1.5rem;
}

.footer-links a {
	color: var(--text-primary);
	text-decoration: none;
	font-weight: 500;
	opacity: 0.8;
}

.privacy-section {
	margin-top: 3rem;
	text-align: left;
	background: var(--card-bg);
	padding: 2.5rem;
	border-radius: 24px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
	animation: fadeInUp 0.5s ease-out;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.privacy-section h3 {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: var(--text-primary);
}

.privacy-section h4 {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 1.5rem 0 0.75rem;
	color: var(--color-passed);
}

.privacy-section p {
	color: rgba(0, 0, 0, 0.7);
	line-height: 1.6;
	margin-bottom: 1rem;
}

.privacy-section ul {
	margin-bottom: 1rem;
	padding-left: 1.5rem;
}

.privacy-section li {
	color: rgba(0, 0, 0, 0.7);
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

.privacy-section a {
	color: var(--color-passed);
	text-decoration: underline;
	text-underline-offset: 2px;
}

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

/* Mobile Tweaks */
@media (max-width: 400px) {
	.dots-grid {
		gap: 4px;
		/* Tighter on small screens */
	}

	.dot {
		width: 8px;
		height: 8px;
	}

	.progress-card {
		padding: 16px;
	}
}