@import url("https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.blue.min.css") layer (theme);
@import url("/main.css") layer(main);

main h1 {
	color: #ffffff;
	font-size: 3.2rem;
	line-height: 3.2rem;
	span {
		color: #01aaff;
	}
}

pre {
	line-height: 20px;
}

pre > code {
	.json-comment {
		color: #5a6673;
	}
	.json-key {
		color: #59c2ff;
	}
	.json-string {
		color: #aad94c;
	}
	.json-number {
		color: #ffb454;
	}
}

main,
#coverage,
#pricing {
	margin-block: 4rem;
}

#intro {
	text-align: pretty;
}

#cta {
		margin-block-start: 2rem;
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

#cta,
#pricing {
	a {
		text-decoration: none;
		text-align: center;
		border-radius: 1rem;
		color: #ffffff;
		background-color: #374151;
		border: 1px solid #374151;
		padding: 1rem 2rem;
		transition: background-color 0.2s ease-in-out;
	}
	a:hover {
		background-color: #4b5563;
	}
	a:first-of-type {
		background-color: #0172ad;
		box-shadow: #0172ad 0px 0px 20px -4px;
	}
	a:first-of-type:hover {
		background-color: #0284c7;
	}
}

#example {
	display: none;
	font-size: 14px;
	margin-block: 1.5rem;
	margin-inline-start: 1.5rem;
	width: 488px;
	height: 643px;
	border-radius: 12px;
	box-shadow:
		0 10px 40px rgba(0, 0, 0, 0.15),
		0 0 0 1px rgba(255, 255, 255, 0.3);
	overflow: hidden;
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
		sans-serif;
	flex-direction: column;

	header {
		display: flex;
		align-items: center;
		background: rgba(255, 255, 255, 0.2);
		border-bottom: 1px solid rgba(0, 0, 0, 0.05);
		padding: 0 16px;
		height: 38px;
		h2 {
			font-size: 14px;
			overflow: hidden;
			flex: 1 0 auto;
			text-align: center;
			color: #cadaff;
		}
		div {
			display: flex;
			gap: 8px;
			span {
				width: 12px;
				height: 12px;
				border-radius: 50%;
				box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
			}
			span:first-child {
				background-color: #ff5f56;
			}
			span:nth-child(2) {
				background-color: #ffbd2e;
			}
			span:nth-child(3) {
				background-color: #27c93f;
			}
		}
	}
	pre {
		margin: 0;
		padding: 20px;
		overflow-y: auto;
		overflow-x: hidden;
	}
}

#coverage {
	display: grid;
	grid-template:
		"header" auto
		"markets" auto
		/ 1fr;
	gap: 1rem 3rem;
	header {
		grid-area: header;
	}
	.map {
		display: none;
		grid-area: map;
		img {
			width: 720px;
		}
	}
	.map::after {
		display: none;
	}
}

#markets {
	grid-area: markets;
	height: max-content;
	ul {
		padding: 0;
		display: grid;
		grid-template-columns: 1fr;
		grid-auto-flow: row;
		gap: 0.5rem;
		li {
			list-style: none;
			white-space: nowrap;
			svg {
				vertical-align: bottom;
				fill: #01aaff;
			}
		}
	}
}

#pricing-table {
	margin-block-start: 2rem;
	display: grid;
	gap: 2rem 3rem;
	color: #ffffff;
	b {
		font-size: 200%;
	}
	b + small {
		font-size: 125%;
		margin-inline-start: 0.25em;
	}
	del {
		text-decoration: none;
	}
	small,
	del {
		color: #92a1c3;
	}
	& > article {
		display: grid;
		grid-template-rows: auto auto 1fr auto;
	}
}

@media (min-width: 1296px) {
	body {
		max-width: 1280px;
		margin-inline: auto;
	}

	body > header {
		nav {
			a[href="/"] {
				flex: 0 0 auto;
			}
			a[href="/"]:not(:has(svg)) {
				flex: 1 0 auto;
				display: unset;
			}
		}
	}

	main {
		display: grid;
		grid-template-columns: 1fr auto;
	}

	#example {
		display: flex;
	}

	#coverage {
		grid-template:
			"header header" auto
			"map markets" auto
			/ 720px 1fr;
		.map {
			display: block;
		}
	}

	#cta {
		a + a {
			margin-inline-start: 1rem;
		}
	}

	#cta {
		flex-direction: row;
	}

	#markets {
		ul {
			grid-template-columns: 1fr 1fr 1fr;
		}
	}

	#pricing-table {
		grid-template-columns: 1fr 1fr 1fr;
	}
}
