/* global */

html {
	font-family: -apple-system, BlinkMacSystemFont, 'HelveticaNeue-Light', 'Helvetica Neue', Helvetica, sans-serif;
	height: 100%;
	min-width: 360px;
	box-sizing: border-box;
}

*, *:before, *:after {
	box-sizing: inherit;
}

body {
	margin: 0;
	display: flex;
	flex-flow: column;
	min-height: 100vh;
	background-color: #A05BF8;
}

main {
	flex: 1;
	background-color: white;
}

h2 {
	font-size: 22pt;
}

p {
	line-height: 1.3;
}

a {
	text-decoration: none;
	color: inherit;
}



/* header */

header {
	display: flex;
	justify-content: space-evenly;
	flex-wrap: wrap;
	padding: 20px;
	row-gap: 16px;
	background-color: #A05BF8;
}

.logo {
	display: flex;
	align-items: center;
	color: white;
}

.logo img {
	width: 5em;
}

.logo div {
	margin: 0 0.5em;
}

.logo h1 {
	font-size: 28pt;
	margin: 0;
}

.logo p {
	font-size: 12pt;
	margin: 0;
}

nav {
	align-content: center
}

.menu {
	display: flex;
	justify-content: space-evenly;
	flex-wrap: wrap;
	align-content: baseline;
	row-gap: 16px;
	align-items: center;
	margin: 0;
	padding: 0 0 0;
}

.menu-item {
	list-style: none;
	display: inline;
	margin: 0 10px;
	white-space: nowrap;
}

.menu-link {
	color: white;
	transition: 100ms linear;
}

.menu-link:hover {
	color: #b3b3b3;
}

.download-button {
	background-color: #5AC8FA;
	padding: 0.5em 1em;
	border-radius: 20px;
	color: white;
	transition: 100ms linear;
}

.download-button:hover {
	background-color: #46a4d0;
}

/* main content */

main {
	margin: 0;
}

section {
	margin: 0;
	padding: 2em 3em;
	width: 100%;
}

.content {
	display: flex;
	flex-wrap: wrap-reverse;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
}

main div {
	max-width: 600px;
	margin: 12pt auto;
}

#hero div {
	max-width: 800px;
}

#hero p {
	font-size: 16pt;
}

.hero-images {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 auto;
	gap: 20px;
}

.hero-screenshot {
	flex: 1;
}

.hero-screenshot img {
	width: 100%;
}

.bigger {
	flex: 1.2;
}

.appstorelink {
	display: block;
	margin: 10px auto;
	min-width: 130px;
}

.homepage section:nth-child(2n) {
	background-color: rgb(212, 178, 255);
	color: white;
}

.inline-screenshot {
	max-height: 600px;
	aspect-ratio: auto;
	margin: 0 auto;
}

.inline-screenshot img {
	width: 100%;
	max-height: 600px;
}

.screenshot-caption {
	text-align: center;
	margin: 0 auto;
	font-size: 10pt;
	color: #b3b3b3;
}

.sample-icons {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	max-width: 450px;
}

.sample-icons img {
	width: 100%;
	max-height: 100px;
}

#want div {
	max-width: min(100%, max(90%, 600px));
}

#want h2 {
	text-align: center;
}

.card-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 20px;
}

.feature-card {
	min-width: 20em;
	flex: 0 0 0;
	padding: 1em;
	border-radius: 15px;
	background-color: #4dc9f5;
	box-shadow: 0px 0px 20px black;
}

.feature-card h3 {
	text-align: center;
}

.headshot {
	max-height: 200px;
	aspect-ratio: auto;
	margin: 0 auto;
	float: right;
	clip-path: circle(at center);
}

/* footer */

footer {
	color: white;
	background-color: #A05BF8;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: start;
	padding: 20px 20px 0;
}

.footer-logo {
	display: flex;
	align-items: start;
}

.footer-logo div {
	margin: 0 0.5em;
}

.footer-logo img {
	width: 2em;
}

.footer-logo h1 {
	margin: 0;
	font-size: 11pt;
}

.footer-logo p {
	margin: 0;
	font-size: 10pt;
}

footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

footer li {
	margin: 5px;
}

footer ul a:hover {
	text-decoration: underline;
}

.copyright {
	margin: 0 auto;
	padding: 0 0 1em;
	text-align: center;
}

/* 404 page */

.not-found a {
	text-decoration: underline;
	color: revert;
}

/* FAQ page */

.faq nav h3 {
	margin: 0;
}

.faq nav a {
	text-decoration: underline;
}

.faq nav a:hover {
	text-decoration: none;
}

.faq nav ul {
	margin: 0.5em 0;
	padding-left: 0.5em;
	list-style: none
}

.faq li {
	margin: 0.25em 0;
}

.faq section {
	padding: 0 20px;
}

.faq h3 {
	margin: 1em 0 0.5em;
}

.faq h4 {
	margin: 2em 0 0;
}

.faq h3+h4 {
	margin: 0;
}

.faq p {
	padding-left: 0.25em;
}

.sf-symbol {
	display: inline;
	height: 0.75em;
}

code {
	padding: 2px 6px;
	background-color: rgb(223, 223, 223);
	border-radius: 6px;
}

/* dark mode */

@media (prefers-color-scheme: dark) {
	main {
		background-color: #191919;
	}

	.homepage section:nth-child(2n) {
		background-color: rgb(133, 106, 167);
	}

	h2, h3, h4, p, li {
		color: #D9D9D9;
	}

	code {
		color: #191919;
	}

	.feature-card {
		background-color: #2ca1cb
	}
}

/* responsive */

@media screen and (width < 550px) {
	.secondary {
		display: none;
	}

	#hero {
		display: flex;
		flex-wrap: wrap;
		gap: 0;
	}

	.hero-images {
		display: block;
	}

	.hero-screenshot {
		max-height: 600px;
		aspect-ratio: auto;
		margin: 0 auto;
	}

	.hero-screenshot img {
		width: 100%;
		max-height: 600px;
	}

	.card-grid {
		gap: 0px;
	}

	.feature-card {
		min-width: 15em;
	}

	.headshot {
		float: none;
		margin: 0 auto;
		display: block;
	}

	.copyright {
		margin-top: 10pt;
	}