:root {
	--brand-color: #008bcd;
	--page-padding: 2rem;
	--page-max-width: 1200px;
	--shadow-soft: 0 0 4px rgba(0, 0, 0, 0.1);
	--shadow-medium: 0 0 6px rgba(0, 0, 0, 0.15);
	--shadow-hard: 0 0 8px rgba(0, 0, 0, 0.2);
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url(/fonts/figtree-300.woff2) format("woff2");
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(/fonts/figtree.woff2) format("woff2");
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(/fonts/figtree-500.woff2) format("woff2");
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(/fonts/figtree-600.woff2) format("woff2");
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(/fonts/figtree-700.woff2) format("woff2");
}

html {
	background: white;
	color: #121212;
}
a {
	color: #121212;
}
ul {
	list-style: none;
	padding: 0;
}

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	text-decoration: none;
}

hr {
	max-width: 60vw;
	margin-inline: auto;
	border: 1px solid rgba(0, 0, 0, 0.06);
	margin-bottom: 2rem;
}

body {
	font-family: "Figtree", sans-serif;
}

header {
	position: sticky;
	display: flex;
	top: 0;
	z-index: 1000;
	transition:
		transform 0.3s ease-in-out,
		background 0.3s ease-in-out;
}
header #logo {
	padding: 0;
}
header.hidden {
	transform: translateY(-115%);
}
header.scrolled {
	background: #008bcddd;
	backdrop-filter: blur(8px);
}
header.theme-light {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
}

header .container {
	max-width: var(--page-max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	padding-inline: 1rem 0.5rem;
	padding-top: 5px;
	flex: 1 1 0%;
}

header nav {
	display: flex;
	flex: 1;
	justify-content: flex-end;
	align-items: center;
	gap: 1.5rem;
}
header a {
	color: rgba(255, 255, 255, 0.7);
	padding-inline: 1rem;
}
header.theme-light a {
	color: rgba(0, 0, 0, 0.7);
}
header a.active {
	color: var(--brand-color);
}
header a:hover {
	color: white;
}
header.theme-light a:hover {
	color: black;
}

header #login {
	padding: 0.5rem 1rem;
	border: none;
	border-radius: 0.5rem;
	background: #ffffff;
	color: var(--brand-color);
	font-size: 1rem;
	line-height: 1rem;
	font-weight: 500;
}
header #login:hover {
	background: var(--brand-color);
	color: white;
}

#burger {
	cursor: pointer;
	display: inline;
	margin: 10px 1rem;
}
#burger .edge {
	stroke-dasharray: 60 207;
	transition: all 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
#burger .mid {
	stroke-dasharray: 60 60;
	transition: all 600ms;
}
.menu-open #burger .edge {
	stroke-dasharray: 90 207;
	stroke-dashoffset: -134;
}
.menu-open #burger .mid {
	stroke-dasharray: 1 60;
	stroke-dashoffset: -30;
}

.mainmenu {
	display: none;
	position: absolute;
	padding-block: 0.75rem 0.5rem;
	background: white;
}
.mainmenu li {
	cursor: pointer;
	position: relative;
	display: block;
	white-space: nowrap;
	padding: 0.6rem;
	margin: 0;
}
.mainmenu li div {
	display: inline-block;
	padding-inline: 0.25rem;
	margin-inline: 0.5rem;
	padding-block: 1rem;
}
.mainmenu.dark {
	background: rgba(0, 0, 0, 0.1);
}
.menu-open .mainmenu {
	display: block;
	position: absolute;
	top: 54px;
	right: 18px;
	padding-block: 0.75rem 0.5rem;
	box-shadow: var(--shadow-soft);
}
.menu-open .mainmenu li div {
	cursor: pointer;
	display: inline-block;
	padding-inline: 1.25rem;
	padding-block: 0.5rem;
	margin-inline: 0;
	width: 100%;
	text-decoration: none;
}
.menu-open .mainmenu li div:hover {
	background-color: #f0f0f0;
}
.mainmenu li:focus-within .submenu {
	display: block;
}

h2 {
	color: var(--brand-color);
	font-size: 1.6rem;
	font-weight: 400;
}

section.content {
	max-width: 65rem;
	margin-inline: auto;
	padding-inline: 1rem;
	padding-block: 2rem;
}

#hero {
	--hero-height: 575px;
	position: relative;
	margin-top: -62px;

	img {
		width: 100vw;
		height: 100%;
		max-height: var(--hero-height);
		min-height: var(--hero-height);
		object-fit: cover;
	}
	picture {
		display: block;
		position: relative;
	}

	#content {
		position: absolute;
		z-index: 2;
		display: grid;
		inset-inline: 0;
		justify-content: center;
		gap: 2rem;
		padding-inline: 1rem;
		bottom: 6.5rem;
		color: white;
	}

	h1 {
		max-width: 50rem;
		text-wrap: balance;
		align-content: end;
		font-size: 2.25rem;
		font-weight: 600;
	}

	p {
		max-width: 35rem;
		text-wrap: balance;
		align-content: end;
		font-size: 1.5rem;
		font-weight: 300;
	}
	#curve {
		display: block;
		position: absolute;
		bottom: -1px;
		left: 0;
		overflow: hidden;
	}
	#curve svg {
		max-height: 52px;
	}
}
#hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	height: 100px;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0),
		rgba(255, 255, 255, 0.9)
	);

	pointer-events: none;
}

#trust .intro {
	text-align: center;
	font-size: 0.9rem;
	margin-bottom: 1rem;
}
#trust .strip {
	display: grid;
	gap: 2rem;
	margin-inline: auto;
	grid-auto-flow: column;
	overflow-x: scroll;
	width: min(900px, 95vw);
}

#principles {
	max-width: 55rem;
	padding-block: 3rem;
	h2 {
		text-align: center;
		margin-block: 2rem;
		padding-inline: 1rem;
	}
	ul {
		gap: 1rem;
	}
	li {
		display: flex;
		gap: 1rem;
		flex: 1;
		padding-block: 1rem 2rem;
		padding-inline: 1rem;
		border-radius: 0.5rem;
		max-width: 350px;
		margin-inline: auto;
	}
	.icon {
		height: 4rem;
	}
	.title {
		font-size: 1.1rem;
	}
	.desc {
		padding-top: 0.5rem;
		font-size: 0.9rem;
		color: #555;
	}
}

#how {
	.editorial {
		gap: 2rem;
		grid-template-columns: 1fr 1fr;
		padding-bottom: 2rem;
	}

	blockquote {
		position: relative;
		margin-block: 1rem;
		max-width: 300px;
		border-left: solid 3px var(--brand-color);
		line-height: 1.3;
		padding: 10px 25px;
		font-size: 1.1rem;
		color: var(--brand-color);
	}
	blockquote::before {
		position: absolute;
		content: "“";
		left: 0;
		top: -10px;
		font-size: 4rem;
		line-height: 1;
		color: var(--brand-color);
		opacity: 0.4;
		font-family: Georgia, serif;
	}

	gap: 2rem;
	ul {
		display: grid;
		grid-template-columns: 32fr 30fr;
		gap: 2rem 1rem;
	}
	ul > *:nth-child(even) {
		transform: translateY(18px);
	}
	.title {
		font-size: 1.2rem;
		margin-bottom: 2px;
	}
	.desc {
		font-size: 15px;
		color: rgba(0, 0, 0, 0.6);
	}
	.summary {
		display: flex;
		align-items: start;
		justify-content: center;
		gap: 0.25rem;
		font-size: 0.85rem;
		padding-block: 1rem;
		svg {
			fill: var(--brand-color);
		}
	}
}

#features {
	.intro {
		display: flex;
		align-items: start;
		gap: 1rem;
		padding-block: 1rem;
		max-width: 800px;
	}
	.items {
		display: grid;
		grid-template-columns: 1fr;
		gap: 2rem 3rem;
		align-items: center;
	}
	h3 {
		font-weight: 400;
	}
	p {
		font-size: 15px;
		color: rgba(0, 0, 0, 0.6);
	}

	img {
		width: 400px;
		max-width: 95vw;
		height: 250px;
		object-fit: cover;
		border: 1px solid rgba(0, 0, 0, 0.05);
		border-radius: 8px;
	}
	.caption {
		font-size: 13px;
		color: var(--brand-color);
		opacity: 0.6;
	}
	.caption-right {
		text-align: right;
	}
	.summary {
		font-size: 15px;
		color: rgba(0, 0, 0, 0.6);
		padding-top: 2rem;
		padding-bottom: 2rem;
		text-align: center;
	}
}

#cta {
	padding-inline: 1rem;
	h2 {
		margin-bottom: 2rem;
	}
	p {
		margin-bottom: 2rem;
		max-width: 800px;
		opacity: 0.7;
	}
}

header.theme-light .cta a {
	color: var(--brand-color);
}
.cta {
	a {
		padding: 0.5rem;
		background: white;
		color: var(--brand-color);
		border: 2px solid var(--brand-color);
		border-radius: 8px;
		font-size: 1rem;
		font-weight: 500;
		opacity: 0.7;
	}
	a:hover {
		opacity: 1;
	}
}

/* Footer */
footer {
	font-size: 0.85em;
	padding: 6rem 1rem 2rem;
	color: rgba(0, 0, 0, 0.6);
}

footer a {
	display: inline-block;
	line-height: 1.8;
	color: rgba(0, 0, 0, 0.6);
}
footer .inner {
	max-width: var(--page-max-width);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: start;
}
footer .addr {
	padding-bottom: 2px;
}

@media (min-width: 700px) {
	#burger {
		display: none;
	}
	.mainmenu {
		display: flex;
		background: unset;
		position: unset;
		height: unset;
		padding: 0.25rem 0.5rem;
	}
	.mainmenu.dark {
		background: unset;
	}
	header #login {
		margin-left: 1rem;
	}

	#hero {
		--hero-height: 470px;
		margin-top: -52px;
		#content {
			display: flex;
			padding-inline: 2rem;
		}
		h1 {
			max-width: 42rem;
			font-size: 2.5rem;
		}
		p {
			max-width: 27rem;
			font-size: 1.75rem;
			line-height: 2rem;
		}
		#curve svg {
			max-height: unset;
		}
	}
	#principles ul {
		display: flex;
	}
	#principles li {
		display: block;
		max-width: 300px;
		text-align: center;
	}
	#principles h2 {
		padding-inline: 3rem;
	}
	#how .editorial {
		display: grid;
	}
	#how .intro {
		border-right: solid 1px rgba(0, 0, 0, 0.08);
		padding-right: 1rem;
	}
	#how blockquote {
		margin-top: 4rem;
		font-size: 1.4rem;
		padding: 40px 45px;
		max-width: 350px;
	}
	#how blockquote::before {
		font-size: 6rem;
	}
	#how ul {
		gap: 3rem 3rem;
	}
	#features .items {
		grid-template-columns: 1fr 1fr;
	}
	#features .items p {
		padding-bottom: 6rem;
	}
	#features .items .c {
		grid-column: 2;
		grid-row: 2;
	}
	#features .items .g {
		grid-column: 2;
		grid-row: 4;
	}
	#features .intro {
		img.rotate-pos {
			rotate: 1deg;
		}
		img.rotate-neg {
			rotate: -1deg;
		}
	}
}
@media (min-width: 950px) {
	#hero {
		#content {
			padding-inline: 4rem;
		}
		h1 {
			font-size: 3rem;
		}
	}
}
@media (min-width: 1000px) {
	#hero {
		--hero-height: 500px;
		#content {
			padding-inline: 5rem;
			bottom: 8rem;
		}
		h1 {
			max-width: 30rem;
			font-size: 3.5rem;
			line-height: 3.5rem;
		}
		p {
			font-size: 2rem;
			line-height: 2.5rem;
		}
	}
}
