/* fitfrog landing — mobile-first, no build */
/* footer contact (see index.html) */
.footer {
	position: absolute;
	bottom: 0.75rem;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 0.78rem;
	opacity: 0.5;
	letter-spacing: 0.02em;
	user-select: text;
	pointer-events: none;
}

.footer-mail {
	pointer-events: auto;
	color: inherit;
	text-decoration: none;
}

.footer-mail:hover,
.footer-mail:focus-visible {
	text-decoration: underline;
	outline: none;
}
:root {
	--bg: #f7f3e8;
	--ink: #0e3b2e;
	--frog: #22a25d;
	--frog-dark: #15803d;
	--lime: #bef264;
	--card: #ffffff;
	--card-hover: #e6f8c2;
	--card-border: #e4dec9;
	--focus: #b45309;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	overflow: hidden;
	overscroll-behavior: none;
}

body {
	margin: 0;
	height: 100vh;
	height: 100dvh;
	min-height: 0;
	overflow: hidden;
	overscroll-behavior: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(2rem, 6vh, 4rem);
	padding: 2rem 1rem;
	background: var(--bg);
	color: var(--ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	text-align: center;
}

.mascot {
	width: clamp(160px, 30vw, 260px);
	height: auto;
}

.hero h1 {
	margin: 0;
	font-size: clamp(2.75rem, 9vw, 4.75rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1;
	color: var(--ink);
}

.cards {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: min(100%, 22rem);
}

.card {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 4.25rem;
	padding: 0.75rem 1.5rem;
	border: 2px solid var(--card-border);
	border-radius: 1.25rem;
	background: var(--card);
	color: var(--ink);
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-decoration: none;
	touch-action: manipulation;
	-webkit-user-select: none;
	user-select: none;
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease,
		border-color 0.15s ease,
		background-color 0.15s ease;
}

.card.is-hovered {
	transform: translateY(-2px);
	border-color: var(--frog);
	box-shadow: 0 8px 24px rgba(14, 59, 46, 0.12);
	background: var(--card-hover);
}

.card:active {
	transform: translateY(0);
}

.card:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.card-icon {
	width: 2.5rem;
	height: 2.5rem;
	flex: none;
	transition: transform 0.15s ease;
}

.card.is-hovered .card-icon {
	transform: translateY(-2px);
}

/* mascot reactions per app card */
.bar {
	transition: transform 0.15s ease;
}

.mouth-open,
.chat-bubble,
.meet-bubble {
	opacity: 0;
}

.mascot.is-kumak .bar {
	animation: bar-curl 0.6s ease-in-out infinite;
}

@keyframes bar-curl {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

.mascot.is-traszka #mouth-smile {
	opacity: 0;
}

.mascot.is-traszka .mouth-open {
	opacity: 1;
	animation: talk 0.34s ease-in-out infinite;
	transform-box: fill-box;
	transform-origin: center;
}

@keyframes talk {
	0%,
	100% {
		transform: scaleY(1);
	}
	50% {
		transform: scaleY(0.2);
	}
}

.mascot.is-traszka .chat-bubble {
	opacity: 1;
}

.mascot.is-rzekotka .meet-bubble {
	opacity: 1;
}

.meet-frog {
	animation: head-bob 0.8s ease-in-out infinite;
}

.meet-frog + .meet-frog {
	animation-delay: 0.4s;
}

@keyframes head-bob {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-2px);
	}
}

.chat-dot {
	animation: dot-pulse 1s ease-in-out infinite;
}

.chat-dot:nth-child(3) {
	animation-delay: 0.15s;
}

.chat-dot:nth-child(4) {
	animation-delay: 0.3s;
}

@keyframes dot-pulse {
	0%,
	100% {
		opacity: 0.35;
	}
	50% {
		opacity: 1;
	}
}

@media (min-width: 48rem) {
	.cards {
		flex-direction: row;
		width: auto;
	}
	.card {
		min-width: 9rem;
	}
}

/* short viewports (mobile landscape / small phones): shrink so nothing clips */
@media (max-height: 600px) {
	body {
		padding: 1rem;
		gap: 1rem;
	}
	.hero {
		gap: 0.5rem;
	}
	.mascot {
		width: clamp(96px, 24vw, 140px);
	}
	.hero h1 {
		font-size: clamp(1.75rem, 7vw, 2.75rem);
	}
	.cards {
		gap: 0.75rem;
	}
	.card {
		min-height: 3.5rem;
		padding: 0.5rem 1.25rem;
		font-size: 1.125rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.card,
	.bar {
		transition: none;
	}
	.card.is-hovered {
		transform: none;
	}
	.bar,
	.mouth-open,
	.chat-dot,
	.meet-frog {
		animation: none;
	}
}
