/* Frog Quest+ support site, same look as jasonmuse.pages.dev (Lato, the purple/blue sky, the squiggle titles) */

@font-face {
	font-display: swap;
	font-family: 'Lato';
	font-style: normal;
	font-weight: 400;
	src: url('fonts/lato-v24-latin-regular.woff2') format('woff2');
}

@font-face {
	font-display: swap;
	font-family: 'Lato';
	font-style: italic;
	font-weight: 400;
	src: url('fonts/lato-v24-latin-italic.woff2') format('woff2');
}

@font-face {
	font-display: swap;
	font-family: 'Lato';
	font-style: normal;
	font-weight: 700;
	src: url('fonts/lato-v24-latin-700.woff2') format('woff2');
}

:root {
	--sky: #373593;            /* each page's script picks a shade between this and #3C56AB on every load */
	--panel: rgba(0, 0, 0, 0.25);
	--ink: #ffffff;
	--soft-ink: #e6e3ff;
	--quest-orange: #ffb53d;   /* the FROG QUEST logo */
	--frog-card: linear-gradient(135deg, #16392f 0%, #20351d 54%, #382814 100%);
	--line: rgba(255, 255, 255, 0.18);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Lato', sans-serif;
	color: var(--ink);
	background-color: var(--sky);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--quest-orange);
}

a:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--quest-orange);
	outline-offset: 3px;
}

.pixel {
	image-rendering: pixelated;
}

/* ── Page frame ─────────────────────────────────────────── */

#main-container {
	width: 100%;
	display: flex;
	justify-content: center;
}

main {
	width: 100%;
	max-width: 720px;
	background-color: var(--panel);
	border-radius: 10px;
	box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
	padding: 28px 40px 0px 40px;
}

.text {
	width: 95%;
	margin: 2% auto 0;
	font-size: 20px;
	line-height: 1.5;
	text-align: center;
	filter: drop-shadow(0px 3px 3px #000000);
}

.small-text {
	font-size: 15px;
	line-height: 1.45;
	color: var(--soft-ink);
}

/* ── Nav pills (the portfolio's resume buttons, smaller) ── */

.top-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0 auto 8px;
}

.pill,
.big-pill {
	display: inline-block;
	padding: 8px 18px;
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	text-align: center;
	text-decoration: none;
	background: linear-gradient(135deg, #544d5d, #303143);
	border: 2px solid #ffffff44;
	border-radius: 8px;
	filter: drop-shadow(0px 3px 4px #000000);
	transition: transform 0.25s ease, background 0.3s ease, border 0.3s ease;
}

.pill:hover,
.big-pill:hover {
	transform: scale(1.03);
	background: linear-gradient(135deg, #4e4e4e, #2a2a2a);
	border-color: #ffffffaa;
}

.pill[aria-current="page"] {
	border-color: var(--quest-orange);
}

.big-pill {
	padding: 12px 25px;
	font-size: 19px;
	min-width: 200px;
}

.big-pill.go {
	background: linear-gradient(135deg, #2f6b3c, #1a3d22);
}

.big-pill.go:hover {
	background: linear-gradient(135deg, #2a5c34, #14301b);
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin: 22px auto;
}

/* ── Title art ──────────────────────────────────────────── */

.art {
	text-align: center;
	margin: 18px auto 6px;
}

.art img {
	width: 78%;
	max-width: 460px;
	filter: drop-shadow(0px 0px 6px rgba(255, 255, 255, 0.55));
	animation: tilt 7s infinite alternate ease-in-out;
	transform-origin: 50% 50%;
}

@keyframes tilt {
	from { transform: rotate(-2deg); }
	to   { transform: rotate(2deg); }
}

/* ── Squiggle section titles (straight from the portfolio) ── */

.section-title {
	position: relative;
	width: 250px;
	height: 100px;
	margin: 34px auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #ffffff;
	border-radius: 5px;
	overflow: hidden;
	background-color: #171717;
	transform: translateZ(0);
	isolation: isolate;
}

.section-title::before {
	content: "";
	position: absolute;
	inset: -2px;
	background-image: url("images/earthboundbattlesquiggle-soft.webp");
	background-size: cover;
	background-position: center;
	opacity: 0.5;
	transform: scale(1.03);
	z-index: -1;
}

.section-title.wide {
	width: 320px;
}

h1.section-title {
	margin-top: 22px;
}

/* ── App Store button + phone reel ─────────────────────── */

.app-store-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 18px;
	color: #ffffff;
	text-decoration: none;
	background: #050505;
	border: 2px solid #ffffff33;
	border-radius: 8px;
	box-shadow: inset 0px 1px 0px rgba(255, 255, 255, 0.18), 0px 5px 12px rgba(0, 0, 0, 0.3);
	transition: transform 0.25s ease, border 0.3s ease;
}

.app-store-button:hover {
	transform: scale(1.03);
	border-color: #ffffffaa;
}

.app-store-button svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
}

.app-store-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
	text-align: left;
	font-size: 12px;
}

.app-store-copy strong {
	font-size: 19px;
}

.showcase {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 26px;
	align-items: center;
	margin: 26px auto 8px;
	padding: 22px;
	background: var(--frog-card);
	border-radius: 8px;
	box-shadow: 0px 10px 22px rgba(0, 0, 0, 0.32);
}

.phone-preview {
	width: 170px;
	aspect-ratio: 460 / 996;
	overflow: hidden;
	border: 3px solid rgba(255, 255, 255, 0.42);
	border-radius: 20px;
	background: rgba(0, 0, 0, 0.45);
	box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.5);
}

.screenshot-track {
	display: flex;
	width: 500%;
	height: 100%;
	animation: screenshot-reel 30s infinite;
}

.screenshot-track img {
	display: block;
	flex: 0 0 20%;
	width: 20%;
	height: 100%;
	object-fit: cover;
}

@keyframes screenshot-reel {
	0%, 16%   { transform: translateX(0); }
	20%, 36%  { transform: translateX(-20%); }
	40%, 56%  { transform: translateX(-40%); }
	60%, 76%  { transform: translateX(-60%); }
	80%, 100% { transform: translateX(-80%); }
}

.showcase-copy {
	text-align: left;
}

.app-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

.app-icon {
	width: 64px;
	height: 64px;
	border-radius: 14px;
	box-shadow: 0px 5px 14px rgba(0, 0, 0, 0.4);
}

.app-label {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--quest-orange);
}

.app-header h2 {
	margin: 2px 0 0;
	font-size: 28px;
	filter: drop-shadow(0px 1px 1px #000000);
}

.showcase-copy p {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.5;
}

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.tags li {
	padding: 5px 11px;
	font-size: 13px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.14);
	border-radius: 999px;
}

/* ── Cards ──────────────────────────────────────────────── */

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin: 0 auto 10px;
}

.card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	color: #ffffff;
	text-decoration: none;
	background: linear-gradient(135deg, #20364e 0%, #192238 100%);
	border: 2px solid transparent;
	border-radius: 9px;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
	transition: transform 0.25s ease, border 0.3s ease;
}

a.card:hover {
	transform: translateY(-3px);
	border-color: #ffffff55;
}

.card h3 {
	margin: 0;
	font-size: 19px;
}

.card p {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--soft-ink);
}

.contact-card {
	margin: 0 auto 10px;
	padding: 24px;
	text-align: center;
	background: var(--frog-card);
	border: 2px solid rgba(255, 181, 61, 0.55);
	border-radius: 9px;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.contact-card h2 {
	margin: 0 0 8px;
	font-size: 26px;
}

.contact-card p {
	margin: 0 auto 10px;
	max-width: 520px;
	font-size: 16px;
	line-height: 1.5;
}

.contact-card .button-row {
	margin: 16px auto 14px;
}

.contact-card ul {
	display: inline-block;
	margin: 4px auto 0;
	padding-left: 20px;
	text-align: left;
	font-size: 15px;
	line-height: 1.6;
	color: var(--soft-ink);
}

/* ── FAQ ────────────────────────────────────────────────── */

.faq details {
	margin: 0 auto 10px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
}

.faq summary {
	position: relative;
	padding: 15px 46px 15px 18px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
	color: var(--quest-orange);
}

.faq details[open] summary::after {
	content: "\2212";
}

.faq .answer {
	padding: 0 18px 16px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--soft-ink);
}

.faq .answer p {
	margin: 0 0 10px;
}

.faq .answer ol,
.faq .answer ul {
	margin: 0 0 10px;
	padding-left: 22px;
}

.faq .answer .meta {
	font-size: 13px;
	opacity: 0.8;
}

/* ── Legal pages ────────────────────────────────────────── */

.document {
	margin: 0 auto 10px;
	padding: 6px 24px 18px;
	text-align: left;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid var(--line);
	border-radius: 8px;
}

.document p,
.document li {
	font-size: 16px;
	line-height: 1.6;
	color: var(--soft-ink);
}

.document h2 {
	margin: 22px 0 8px;
	font-size: 20px;
	color: #ffffff;
	filter: drop-shadow(0px 1px 1px #000000);
}

.document h3 {
	margin: 16px 0 6px;
	font-size: 17px;
}

.document .meta {
	font-size: 14px;
	opacity: 0.8;
}

.document .link-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.document .button {
	display: inline-block;
	padding: 7px 14px;
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
	background: linear-gradient(135deg, #544d5d, #303143);
	border: 2px solid #ffffff44;
	border-radius: 8px;
}

.intro {
	margin: 0 auto 14px;
	text-align: center;
	font-size: 16px;
	line-height: 1.55;
	color: var(--soft-ink);
	filter: drop-shadow(0px 2px 2px #000000);
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
	margin-top: 34px;
	padding: 18px 0 26px;
	text-align: center;
	font-size: 15px;
	line-height: 1.7;
	border-top: 1px solid var(--line);
	filter: drop-shadow(0px 3px 3px #000000);
}

.site-footer a {
	color: #ffffff;
}

.made-by {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.made-by img {
	width: 64px;            /* 1:1 with the sprite, so its pixels stay square */
	height: 73px;
	animation: hop 2.4s infinite;
}

@keyframes hop {
	0%, 70%, 100% { transform: translateY(0); }
	80%           { transform: translateY(-9px); }
	90%           { transform: translateY(0); }
}

/* ── Small screens ──────────────────────────────────────── */

@media (max-width: 640px) {
	main {
		padding: 22px 14px 0px 14px;
		border-radius: 0;
	}

	.text {
		font-size: 18px;
	}

	.top-nav {
		gap: 7px;
	}

	.pill {
		padding: 7px 11px;
		font-size: 15px;
	}

	.section-title,
	.section-title.wide {
		width: 250px;
		height: 56px;
		font-size: 21px;
	}

	.showcase {
		grid-template-columns: 1fr;
		justify-items: center;
		padding: 18px;
	}

	.phone-preview {
		width: 150px;
	}

	.card-grid {
		grid-template-columns: 1fr;
	}

	.document {
		padding: 4px 16px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.art img,
	.screenshot-track,
	.made-by img {
		animation: none;
	}
}
