html {
	font-family: sans-serif;
}

body {
	display: flex;
	align-items: center;
	flex-direction: column;
	background: var(--canvas);
	margin-top: 0px;
	margin-right: 10px;
	margin-left: 10px;
	margin-bottom: 0px;
}

header {
	padding-top: 10px;
	padding-bottom: 10px;
	display: flex;
	flex-direction: row;
	align-items: center;
	background: #ffffff7f;
	color: var(--text);
	flex-wrap: wrap;
	justify-content: space-evenly;
	position: sticky;
	top: 0px;
	backdrop-filter: blur(15px);
	box-shadow: 0px 1px 5px var(--shadow-light);
	gap: 20px;
}

header, section, footer {
	width: 100%;
	font-size: 20px;
	max-width: 1440px;
	/* NB: the min has to be the same as
	 * the corresponding body margin. */
	padding-right: max(10px, calc(50vw - 720px));
	padding-left: max(10px, calc(50vw - 720px));
	box-sizing: content-box;
}

section, footer {
	padding-top: 25px;
	padding-bottom: 25px;
}

header a {
	text-decoration: none;
	color: var(--text);
	font-weight: 600;
}

header > a:first-child {
	flex: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

header > a:first-child > img {
	width: 100px;
}

header > a:first-child > div {
	display: inline;
	font-size: 30px;
	font-weight: bold;
	color: var(--text);
	width: max-content;
	line-height: 1.0;
}

header > #menu {
	display: none;
}

header > #menu + label {
	display: none;
}

header > nav {
	font-size: 20px;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: right;
	gap: 30px;
}

header > nav a:hover {
	text-decoration: underline;
}

header a.button {
	color: var(--accent-text);
}

section {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-evenly;
}

section > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

header + section,
#plans + section {
	padding-top: 80px;
	padding-bottom: 80px;
}

header + section {
	display: grid;
	align-items: center;
	justify-items: center;
	grid-template-columns: minmax(max-content, 1fr) 1fr;
}

header + section > .title {
	grid-row: 1/2;
	grid-column: 1/2;
	margin: 0;
}

header + section > ul {
	grid-row: 2/3;
	grid-column: 1/2;
	margin: 0;
}

header + section > img {
	grid-row: 1/3;
	grid-column: 2/3;
	width: 100%;
}

li::marker {
	color: var(--accent-dark);
}

ul {
	padding-top: 0;
}

ul.ticks li::marker {
	content: "\2714 ";
	color: var(--green-light);
}

ul.ticks li {
	list-style-position: outside;
	padding-left: 0.5em;
}

.button {
	background: var(--accent2-light);
	border-color: var(--accent2-dark);
	color: var(--accent-text);
	text-align: center;
	font-weight: bold;
	font-family: sans-serif;
	border-radius: 10px;
	border-style: solid;
	border-width: 1px;
	cursor: pointer;
	padding: 5px;
	text-decoration: none;
	min-width: 80px;
	width: max-content;
	justify-content: center;
	display: flex;
	box-sizing: content-box;
}

.button:hover {
	background: var(--accent2-dark);
}

#plans {
	background: var(--accent-dark);
	color: var(--accent-text);
	flex-direction: column;
	box-shadow: 0px 0px 10px inset var(--shadow-dark);
}

#plans > :not(:last-child) {
	margin-right: 0px;
}

#plans + section {
	display: grid;
	grid-template-columns: 1fr minmax(max-content, 1fr);
	align-items: center;
	justify-items: center;
}

#plans + section > img {
	height: 100%;
	grid-row: 1/3;
	grid-column: 1/2;
}

#plans + section > .title {
	grid-row: 1/2;
	grid-column: 2/3;
	margin: 0;
}

#plans + section > ul {
	grid-row: 2/3;
	grid-column: 2/3;
	margin: 0;
}

section:nth-child(odd) {
	background: var(--background);
	color: var(--text);
}

section:nth-child(even) {
	color: var(--text);
}

.title {
	justify-content: center;
	font-size: 36px;
	font-weight: bold;
	margin-bottom: 30px;
	display: flex;
	flex-direction: row;
	width: 100%;
}

#plans > div:nth-child(2) {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-evenly;
	gap: 30px;
	flex-wrap: wrap;
}

.plan {
	display: flex;
	flex-grow: 0;
	flex-direction: column;
	background: var(--canvas);
	padding: 10px;
	border-radius: 20px;
	align-items: center;
	justify-content: end;
	min-width: 240px;
	color: var(--text);
	box-shadow: 0px 0px 10px var(--shadow-dark);
}

.plan > div:first-child {
	font-size: 24px;
	font-weight: 600;
}

.plan > div:nth-child(2) {
	flex-grow: 1;
	padding: 10px;
	font-size: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.plan > .button {
	font-size: 20px;
	width: unset;
	align-self: stretch;
}

#custom {
	flex-direction: column;
}

#features {
	display: block;
	text-align: center;
}

#features > div {
	width: 400px;
	height: 400px;
	display: inline-flex;
	background: #f0f0ff;
	border-radius: 50px;
	margin: 20px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	vertical-align: top;
	padding: 20px;
	box-shadow: 0px 0px 5px inset var(--shadow-light);
}

#features:nth-child(odd) > div {
	background: var(--canvas);
}

#features > div > img {
	width: 100px;
}

#features > div > div:nth-child(2) {
	font-size: 36px;
	font-weight: bold;
}

#features > div > :not(:nth-child(1), :nth-child(2)) {
	display: block;
	overflow: hidden;
	margin: 0;
}

#features > div:hover > :not(:nth-child(1), :nth-child(2)) {
	display: block;
	max-height: 100%;
}

#features > div > ul {
	text-align: left;
}

#questions {
	padding-top: 150px;
	padding-bottom: 150px;
}

#questions > div > div {
	text-align: center;
}

#questions > div > div:not(.title) {
	max-width: 80%;
}

#questions > div > .button {
	margin-top: 20px;
}

footer {
	padding-top: 20px;
	padding-bottom: 40px;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	align-items: start;
	justify-content: space-evenly;
	font-size: 18px;
	background: var(--accent-light);
	color: var(--accent-text);
}

footer > div {
	display: flex;
	flex-direction: column;
	align-items: start;
}

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

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

footer > div > *:first-child {
	font-weight: 600;
	margin-bottom: 1em;
}

.arrow-down, .arrow-right {
	display: inline-block;
	width: 0px;
	height: 0px;
}

.arrow-down {
	border-right: 7px solid transparent;
	border-top: 7px solid var(--text);
	border-left: 7px solid transparent;
}

.arrow-right {
	border-top: 7px solid transparent;
	border-left: 7px solid var(--text);
	border-bottom: 7px solid transparent;
}

.faq {
	align-items: start;
	flex-direction: column;
}

.faq > label {
	color: var(--text);
	font-weight: 600;
	font-size: 24px;
}

.faq > label:hover {
	color: var(--accent-light);
}

.faq > label:hover {
	cursor: pointer;
}

.faq > label:hover > .arrow-right {
	border-left: 7px solid var(--accent-dark);
}

.faq > label:hover > .arrow-down {
	border-top: 7px solid var(--accent-dark);
}

.faq > div {
	margin-top: 20px;
	margin-left: 20px;
	align-items: start;
}

.faq > div > ul {
	margin-top: 0;
	margin-bottom: 0;
}

.faq > label > input[type="checkbox"] {
	display: none;
}

.faq > label:has(> input[type="checkbox"]:not(:checked)) ~ div {
	display: none;
}

.faq > label > input[type="checkbox"]:checked ~ div.arrow-right {
	display: none;
}

.faq > label > input[type="checkbox"]:not(:checked) ~ div.arrow-down {
	display: none;
}

#faq-title {
	background: var(--accent-dark);
	color: var(--accent-text);
	font-size: 32px;
	font-weight: 600;
}

@media (hover: hover) {
	#features > div > :not(:nth-child(1), :nth-child(2)) {
		max-height: 0;
		transition: max-height 1s;
	}
}

@media (hover: none) {
	footer a {
		text-decoration: underline;
	}
}

@media (max-width: 1200px) {
	#plans + section > img {
		height: unset;
		width: 100%;
	}
	#features {
		display: grid;
		grid-template-columns: repeat(auto-fit, 350px);
		gap: 20px;
		justify-items: stretch;
		align-items: stretch;
	}
	#features > div {
		height: unset;
		width: unset;
		margin: 0;
	}
	#features > div > :not(:nth-child(1), :nth-child(2)) {
		max-height: 100%;
	}
}

@media (max-width: 1000px) {
	body {
		margin: 0;
		padding: 0;
	}
	header, section {
		max-width: unset;
		width: 100%;
		padding-right: 10px;
		padding-left: 10px;
		box-sizing: border-box;
	}
	header {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		column-gap: 20px;
		row-gap: 20px;
		align-items: center;
	}
	header > a:first-child {
		display: grid;
		grid-template-columns: subgrid;
		grid-column: 1/3;
		grid-row: 1/2;
		gap: unset;
	}
	header > a:first-child > img {
		width: 50px;
		justify-self: start;
	}
	header > a:first-child > div {
		font-size: 24px;
		justify-self: center;
	}
	header > #menu + label {
		grid-row: 1/2;
		display: flex;
		flex-direction: column;
		flex-grow: 1;
		flex-basis: 0;
		align-items: end;
		justify-content: center;
		gap: 5px;
	}
	header > #menu + label > div {
		background: var(--text);
		width: 30px;
		height: 5px;
	}
	header > #menu + label:hover {
		cursor: pointer;
	}
	header > #menu:checked + label > div {
		background: var(--accent-dark);
	}
	header > nav {
		display: none;
		font-size: 20px;
		align-items: center;
		flex-direction: row;
		grid-column: 1/4;
		grid-row: 2/3;
	}
	header > #menu:checked ~ nav {
		max-height: 100vh;
		display: flex;
	}
	footer  {
		padding-right: 40px;
		padding-left: 40px;
		box-sizing: border-box;
	}
	footer {
		display: flex;
		flex-direction: column;
		flex-wrap: wrap;
		line-height: 30px;
		justify-content: start;
		gap: 50px;
		padding-right: 20px;
		padding-left: 20px;
	}
}

@media (pointer: coarse) {
	#plans > div:nth-child(2) {
		scrollbar-width: none;
	}
}


@media (max-width: 700px) {
	header + section,
	#plans + section {
		grid-template-columns: 1fr;
		gap: 40px;
		padding-top: 40px;
		padding-bottom: 40px;
	}
	header + section > .title,
	#plans + section > .title {
		text-align: center;
		grid-row: 1/2;
		grid-column: 1/2;
	}
	header + section > ul,
	#plans + section > ul {
		grid-row: 2/3;
		grid-column: 1/2;
	}
	header + section > img,
	#plans + section > img {
		grid-row: 3/4;
		grid-column: 1/2;
		width: 85%;
	}
	#plans {
		padding-right: 0px;
		padding-left: 0px;
	}
	#plans > div:nth-child(2) {
		width: 100%;
		overflow: visible scroll;
		justify-content: flex-start;
		scroll-snap-type: x mandatory;
		gap: 0;
		flex-wrap: nowrap;
	}
	.plan {
		scroll-snap-align: center;
		scroll-snap-stop: always;
		flex-grow: 0;
		flex-shrink: 0;
		width: 60vw;
		margin-right: 5vw;
		margin-left: 5vw;
	}
	.plan:first-child {
		margin-left: 20vw;
	}
	.plan:last-child {
		margin-right: 20vw;
	}
	#plans + section > img {
		height: unset;
		width: 100%;
	}
	#features {
		display: flex;
		flex-direction: column;
	}
	#features > div {
		margin: 10px;
		align-self: stretch;
	}
	#questions {
		flex-direction: column;
		gap: 80px;
		padding-top: 80px;
		padding-bottom: 80px;
	}
}
