/* LAYOUT */
body {
	font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu;
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
	font-size: 16px;
	color: #383838;
	text-wrap: pretty;
}

.container {
	margin: auto;
	max-width: 1024px;
	padding: 4rem 2rem;
}

.clear-left {
	clear: left;
}

.display-none {
	display: none;
}

/* SECTIONS */
header, footer {
	background: url("img/bgtile@2x.png"), linear-gradient(to bottom right, #007AFF 0%, #9618D6 100%);
	color: white;
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
}

main {
	background-color: white;
}
	

/* TYPE */
h1 {
	font-size: 2.5rem;
	margin: 0 0 1rem 0;
}

h2 {
	font-size: 2rem;
	margin: 0 0 1.5rem 0;
}

h3 {
	font-size: 1.5rem;
}

hr {
	margin: 3rem auto;
}

p {
	font-size: 1.2rem;
	line-height: 2rem;
	margin: 0 0 1rem 0;
}

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

a:hover {
	text-decoration: underline;
}

/* ELEMENTS */
.logo {
	max-width: 500px;
}

.app-store {
	display: flex;
	gap: 1rem;
	padding-top: 0.5rem;
}

.app-store img {
	height: 75px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.25);
	border-radius: 12px;
}

.hero {
	text-align: center;
	padding: 2rem 0 0;
}

.hero video {
	max-width: 600px;
	background-image: url("img/ipad-frame.png");
	background-size: contain;
	background-repeat: no-repeat;
	padding: 28px 30px 30px 25px;
    border-radius: 44px;
}

.hero .addition-video {
	float: left;
	margin: -240px 0 -220px -32px;
}

.hero .subtraction-video {
	float: right;
	margin-right: -32px;
}

.footer-contents {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
}

.footer-contents p {
	line-height: 2.5rem;
	margin-top: 1.5rem;
}

.footer-contents .app-store {
	margin-top: 1rem;
}

/* FEATURES */
.features {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	padding-top: 180px;
}

.feature {
	display: flex;
	gap: 3rem;
}

.image {
	flex: 1;
	margin-bottom: 2rem;
	background-image: url("img/ipad-frame.png");
	background-size: contain;
	background-repeat: no-repeat;
	padding: 22px;
}

.image img {
	border-radius: 8px;
	max-width: 100%;
}

.description {
	flex: 1;
	padding-top: 1rem;
	text-align: left;
}

/* DOWNLOAD BANNER */
.download {
	border-radius: 24px;
	margin-bottom: 3rem;
	background-color: #9618D6;
	background-image: url("img/bgtile@2x.png");
	box-shadow: 0 1px 4px rgba(0,0,0,0.5);
	color: white;
	font-size: 2.5rem;
	font-weight: bold;
	text-decoration: none;
	text-shadow: 0 1px 5px rgba(0,0,0,0.4);
	transition: all 160ms ease-in-out;
}

.download:hover {
	background-color: #007AFF;
	box-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.primary-cta {
	height: 150px;
	display: flex;
	padding: 1rem;
	gap: 1rem;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	transition: transform 80ms ease-out;
}

.primary-cta:hover {
	text-decoration: none;
}

.download-label {
	margin-right: 3rem;
}

.app-icon {
	width: 96px;
	height: 96px;
	border-radius: 20px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.app-store-button-large {
	height: 101px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.5);
	border-radius: 16px;
}


/* RESPONSIVE */
@media (max-width: 1024px) {
	nav,
	.footer-contents {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 1.5rem;
	}

	.logo {
		max-width: 90%;
		text-align: center;
	}

	.hero .addition-video {
		max-width: 90%;
		margin: 0;
		padding: 40px 44px 44px 40px;
		border-radius: 60px;
		float: none;
	}

	.hero .subtraction-video {
		display: none;
	}

	.download {
		border-radius: 16px;
		margin: 2rem 0 4rem;
	}

	.primary-cta {
		height: auto;
		padding: 3rem;
	}

	.app-icon {
		width: 64px;
		height: 64px;
		border-radius: 12px;
		border-width: 1.5px;
	}

	.app-store-button-large {
		height: 68px;
		border-radius: 12px;
	}

	main {
		padding-top: 0;
	}
	
	.features {
		padding-top: 0;
		text-align: center;
	}

	.feature {
		display: block;
	}

	.feature .image {
		max-width: 90%;
		padding: 40px 42px 42px 40px;
		display: inline-block;
	}

	.feature img {
		border-radius: 16px;
	}

	.footer-contents > * {
		width: 100%;
		text-align: center;
	}

	.app-store {
		justify-content: center;
	}
}

@media (max-width: 1023px) {
	.hero .addition-video {
		width: 700px;
		padding: 30px 32px 32px 30px;
    	border-radius: 42px;
	}

	.feature .image {
		padding: 30px;
	}

	.feature img {
		width: 700px;
		border-radius: 10px;
	}
}

@media (max-width: 767px) {
	.hero .addition-video {
		width: 500px;
		padding: 22px 24px 24px 22px;
    	border-radius: 32px;
	}

	.feature .image {
		width: 500px;
		padding: 22px 24px 24px 22px;
	}
	.feature img {
		border-radius: 10px;
	}

	.download-label {
		display: none;
	}

	.app-store img {
		height: 50px;
		border-radius: 8px;
	}
}

@media (max-width: 600px) {
	.hero .addition-video {
		width: 400px;
		padding: 20px;
    	border-radius: 28px;
	}

	.feature .image {
		width: 400px;
		padding: 19px;
	}

	.feature img {
		border-radius: 8px;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 3rem 2rem;
	}

	.hero .addition-video {
		width: 440px;
		padding: 14px;
    	border-radius: 20px;
	}

	.feature .image {
		width: 300px;
		padding: 14px;
	}

	.feature img {
		width: 300px;
		border-radius: 8px;
	}

	.download {
		margin: 0 0 1rem;
	}

	.primary-cta {
		padding: 2rem 1rem;
	}

	h2 {
		font-size: 1.5rem;
	}

	p {
		font-size: 1.1rem;
	}
}