/* ========================
   FONTS
   ======================== */

@font-face {
	font-family: 'Instrument Serif';
	src: url('fonts/InstrumentSerif-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Inter';
	src: url('fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ========================
   RESET & BASE
   ======================== */

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

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	line-height: 1.6;
	color: #333;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background-color: #FCF5C4;
}

/* ========================
   TYPOGRAPHY
   ======================== */

h1, h2, h3 {
	font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
	font-weight: 400;
	color: #2c3e50;
}

a {
	color: #555;
	text-decoration: underline;
	transition: color 0.2s ease;
}

a:hover {
	color: #222;
}

/* ========================
   CONTENT PAGES (privacy, legal)
   ======================== */

.content {
	max-width: 800px;
	margin: 0 auto;
	padding: 2rem;
	flex: 1;
}

.content h1 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
}

.content h2 {
	font-size: 1.4rem;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.content p {
	margin-bottom: 1rem;
	line-height: 1.8;
	color: #5a5340;
}

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

.content li {
	margin-bottom: 0.4rem;
	line-height: 1.8;
	color: #5a5340;
}

.content strong {
	font-weight: 600;
	color: #333;
}

.content em {
	color: #777;
}

.content .emphasis {
	font-weight: 600;
}

.back-link {
	display: inline-block;
	margin-bottom: 1.5rem;
	color: #666;
	text-decoration: none;
	font-size: 0.9rem;
}

.back-link:hover {
	color: #333;
}

/* ========================
   HERO SECTION (index)
   ======================== */

.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 3rem 2rem 4rem;
}

.app-icon {
	width: 120px;
	height: 120px;
	margin-bottom: 1rem;
	border-radius: 22px;
}

.app-name {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
}

.app-tagline {
	font-size: 1.05rem;
	color: #5a5340;
	max-width: 540px;
	margin-bottom: 2rem;
	line-height: 1.7;
}

.store-badges {
	display: flex;
	gap: 1rem;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}

.app-store-badge {
	height: 60px;
	width: auto;
	transition: transform 0.2s ease;
}

.app-store-badge:hover {
	transform: scale(1.05);
}

/* ========================
   FEATURE SECTIONS (index)
   ======================== */

.features {
	width: 100%;
}

.feature {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3rem;
	padding: 4rem 2rem;
	max-width: 1100px;
	margin: 0 auto;
}

.feature--reversed {
	flex-direction: row-reverse;
}

.feature__image-wrapper {
	flex: 1 1 55%;
	max-width: 600px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.feature__image {
	display: block;
	width: 100%;
	height: auto;
}

.feature__content {
	flex: 1 1 40%;
	max-width: 420px;
}

.feature__title {
	font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
	font-size: 2rem;
	font-weight: 400;
	color: #2c3e50;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.feature__text {
	font-size: 1rem;
	color: #5a5340;
	line-height: 1.75;
}

.feature-divider {
	width: 120px;
	height: 2px;
	background-color: rgba(0, 0, 0, 0.1);
	margin: 0 auto;
}

/* ========================
   LANGUAGE SWITCHER (legal)
   ======================== */

.language-switcher {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
	padding: 1rem 2rem 0;
	max-width: 800px;
	margin: 0 auto;
	width: 100%;
}

.language-switcher a {
	font-size: 0.85rem;
	color: #888;
	text-decoration: none;
}

.language-switcher a:hover {
	color: #333;
}

.language-switcher a.active {
	color: #333;
	font-weight: 500;
}

/* ========================
   FOOTER
   ======================== */

footer {
	background-color: rgba(0, 0, 0, 0.05);
	padding: 1rem;
	text-align: center;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	width: 100%;
	margin-top: auto;
}

footer .links {
	margin-bottom: 0.5rem;
}

footer a {
	color: #666;
	text-decoration: none;
	margin: 0 1rem;
	font-size: 0.9rem;
	transition: color 0.2s ease;
}

footer a:hover {
	color: #333;
}

footer .copyright {
	color: #999;
	font-size: 0.8rem;
}

/* ========================
   DARK MODE
   ======================== */

@media (prefers-color-scheme: dark) {
	body {
		background-color: #2E291A;
		color: #e0dcc8;
	}

	h1, h2, h3 {
		color: #f0ecd8;
	}

	a {
		color: #b0ac98;
	}

	a:hover {
		color: #e0dcc8;
	}

	.app-tagline {
		color: #b0a98e;
	}

	.feature__title {
		color: #f0ecd8;
	}

	.feature__text {
		color: #b0a98e;
	}

	.feature__image-wrapper {
		box-shadow: 0 8px 24px rgba(0,0,0,0.3);
	}

	.feature-divider {
		background-color: rgba(255, 255, 255, 0.1);
	}

	.content p,
	.content li {
		color: #b0a98e;
	}

	.content strong {
		color: #f0ecd8;
	}

	.content em {
		color: #8a8674;
	}

	.back-link {
		color: #a09c88;
	}

	.back-link:hover {
		color: #e0dcc8;
	}

	.language-switcher a {
		color: #8a8674;
	}

	.language-switcher a:hover {
		color: #e0dcc8;
	}

	.language-switcher a.active {
		color: #e0dcc8;
	}

	footer {
		background-color: rgba(255, 255, 255, 0.05);
		border-top-color: rgba(255, 255, 255, 0.08);
	}

	footer a {
		color: #a09c88;
	}

	footer a:hover {
		color: #e0dcc8;
	}

	footer .copyright {
		color: #7a7666;
	}
}

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

@media (max-width: 768px) {
	.hero {
		padding: 1.5rem 1rem 2.5rem;
	}

	.app-icon {
		width: 100px;
		height: 100px;
	}

	.app-name {
		font-size: 2rem;
	}

	.app-tagline {
		font-size: 0.95rem;
	}

	.app-store-badge {
		height: 36px;
	}

	.feature,
	.feature--reversed {
		flex-direction: column;
		gap: 1.5rem;
		padding: 2.5rem 1.5rem;
		text-align: center;
	}

	.feature__image-wrapper {
		max-width: 100%;
	}

	.feature__content {
		max-width: 100%;
	}

	.feature__title {
		font-size: 1.5rem;
	}

	.feature__text {
		font-size: 0.95rem;
	}

	.content {
		padding: 1rem;
	}

	.content h1 {
		font-size: 1.6rem;
	}
}
