/* LifeTicker website — design tokens derived from the app's asset catalog.
   Main accent: Color/Main (#EF2908 light, #D32007 dark).
   Backgrounds follow the iOS grouped-list pattern the app uses. */

:root {
	--accent: #EF2908;
	--bg: #FFFFFF;
	--bg-grouped: #F2F2F7;
	--card: #FFFFFF;
	--text: #1C1C1E;
	--text-secondary: #6E6E73;
	--separator: #D1D1D6;
	--accent-contrast: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
	:root {
		--accent: #EF2908;
		--bg: #000000;
		--bg-grouped: #000000;
		--card: #1C1C1E;
		--text: #FFFFFF;
		--text-secondary: #98989F;
		--separator: #3A3A3C;
	}
}

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

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

body {
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

body.grouped {
	background: var(--bg-grouped);
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* --- Landing page --- */

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 1.1rem 1.25rem;
}

.site-header .brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--text);
}

.site-header .brand img {
	width: 32px;
	height: 32px;
	border-radius: 28.6%; /* iOS icon corner ratio */
}

.site-header .store-pill {
	background: var(--accent);
	color: var(--accent-contrast);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.45rem 1.1rem;
	border-radius: 980px;
}

.site-header .store-pill:hover {
	text-decoration: none;
	filter: brightness(1.08);
}

.hero {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 3rem 1.5rem 3rem;
	gap: 1.25rem;
}

.hero h1 {
	font-size: clamp(2.6rem, 7vw, 4.25rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
	max-width: 16ch;
}

.hero .sub {
	color: var(--text-secondary);
	max-width: 52ch;
	font-size: 1.15rem;
}

.store-button {
	display: inline-block;
	margin-top: 0.75rem;
	background: var(--accent);
	color: var(--accent-contrast);
	font-size: 1.05rem;
	font-weight: 600;
	padding: 0.85rem 1.9rem;
	border-radius: 980px;
}

.store-button:hover {
	text-decoration: none;
	filter: brightness(1.08);
}

/* --- Phone mockup + screenshot slideshow --- */

/* Captions are stacked like the slides and crossfade with the same
   timing, so text and image switch in perfect sync. */
.captions {
	margin-top: 2rem;
	display: grid;
	justify-items: center;
}

.slide-caption {
	grid-area: 1 / 1;
	font-size: clamp(1.45rem, 3.4vw, 2rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.015em;
	opacity: 0;
	transition: opacity 0.7s ease;
}

.slide-caption.active {
	opacity: 1;
}

.phone {
	margin-top: 1.25rem;
	width: min(300px, 78vw);
	border: 10px solid #1C1C1E;
	border-radius: 3rem;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
	background: var(--card);
}

@media (prefers-color-scheme: dark) {
	.phone {
		border-color: #3A3A3C;
	}
}

.screen {
	position: relative;
	aspect-ratio: 1290 / 2796; /* App Store screenshot ratio (6.7") */
}

.slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 0.7s ease;
}

.slide.active {
	opacity: 1;
}

.slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}


/* --- Content pages (legal, support) --- */

.container {
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 1rem;
	flex: 1;
}

.page-header {
	margin-bottom: 1.5rem;
}

.page-header .home-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 1.5rem;
}

.page-header .home-link img {
	width: 28px;
	height: 28px;
	border-radius: 28.6%;
}

.page-header h1 {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.page-header .subtitle {
	color: var(--text-secondary);
	margin-top: 0.25rem;
}

.card {
	background: var(--card);
	border-radius: 16px;
	padding: 1.25rem 1.4rem;
	margin-bottom: 0.9rem;
	border: 1px solid var(--separator);
}

@media (prefers-color-scheme: dark) {
	.card {
		border-color: transparent;
	}
}

.card h2 {
	font-size: 1.35rem;
	margin-bottom: 0.5rem;
}

.card h3 {
	font-size: 1.05rem;
	margin-bottom: 0.4rem;
}

.card ul {
	padding-left: 1.2rem;
	margin: 0.5rem 0;
}

.card li {
	margin-bottom: 0.3rem;
}

.card p + p {
	margin-top: 0.6rem;
}

/* --- Footer --- */

.footer {
	text-align: center;
	padding: 2rem 1.25rem 2.5rem;
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.footer nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 1.1rem;
	margin-bottom: 0.75rem;
}

.footer a {
	color: var(--text-secondary);
}

.footer a:hover {
	color: var(--accent);
}
