/* Open Sans and Roboto (SIL Open Font License), self-hosted */
@font-face {
	font-family: "Open Sans";
	src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Roboto";
	src: url("../fonts/roboto-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--dark: #1b1d1c;
	--page: #303030;
	--footer: #242424;
	--text: #fff;
	--muted: #a9b4b8;
	--pink-1: #f7828e;
	--pink-2: #fcb6ab;
	--wave-top: url("data:image/svg+xml,%3Csvg width='100%25' height='100px' viewBox='0 0 1280 140' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23303030'%3E%3Cpath d='M0 0v60s573.09 80 1280 80V0z' fill-opacity='.3'/%3E%3Cpath d='M0 0v30s573.09 110 1280 110V0z' fill-opacity='.5'/%3E%3Cpath d='M0 0s573.09 140 1280 140V0z'/%3E%3C/g%3E%3C/svg%3E");
	--wave-bot: url("data:image/svg+xml,%3Csvg width='100%25' height='100px' viewBox='0 0 1280 140' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23303030'%3E%3Cpath d='M0 140h1280C573.08 140 0 0 0 0z' fill-opacity='.3'/%3E%3Cpath d='M0 140h1280C573.08 140 0 30 0 30z' fill-opacity='.5'/%3E%3Cpath d='M0 140h1280C573.08 140 0 60 0 60z'/%3E%3C/g%3E%3C/svg%3E");
}

* {
	box-sizing: border-box;
}

html {
	color-scheme: dark;
	background: var(--page);
	scroll-behavior: smooth;
	scroll-padding-top: 4.5rem;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font: 500 1.125rem/1.728 "Open Sans", Arial, sans-serif;
	color: var(--text);
	background: var(--page);
}

main {
	flex: 1;
}

a {
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3 {
	font-family: "Roboto", Arial, sans-serif;
	line-height: 1.2;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

/* header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	height: 84px;
	background: var(--dark);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: 100%;
	padding: 0 clamp(1rem, 2.4vw, 2.1rem);
}

.brand img {
	display: block;
	width: clamp(130px, 18vw, 256px);
	height: auto;
}

.bar nav {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 1.75vw, 1.6rem);
	font: 600 clamp(0.85rem, 1.26vw, 1.125rem)/1 "Open Sans", Arial, sans-serif;
}

.bar nav a {
	text-decoration: none;
}

.bar nav a:hover,
.bar nav a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.35em;
}

/* button */
.btn {
	display: inline-block;
	padding: 11.52px 37.44px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--pink-1), var(--pink-2));
	color: #fff;
	font: 700 1rem/27.2px "Roboto", Arial, sans-serif;
	letter-spacing: 3.6px;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 20px 30px -10px rgba(247, 130, 142, 0.4);
	transition: filter 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
	filter: brightness(1.08);
}

/* hero */
.hero {
	position: relative;
	min-height: 65.2vw;
	padding-top: 22.3vw;
	background: #252627 url("../img/hero.jpg") 50% 100% / cover no-repeat;
}

.hero-text {
	margin-left: 61.1%;
	width: 22.3%;
	min-width: 280px;
}

.hero h1 {
	margin: 0;
	padding-bottom: 0.1rem;
	font-size: clamp(1.4rem, 2.03vw, 1.8rem);
	font-weight: 700;
	line-height: 0.9;
	color: #fff;
}

.hero p {
	margin: 0.8rem 0 1.25rem;
	font-size: clamp(0.95rem, 1.33vw, 1.19rem);
	font-weight: 500;
	line-height: 1.45;
	color: #fff;
}

/* intro */
.intro {
	padding: 34px 1rem 61px;
	text-align: center;
	background: linear-gradient(#252627 0%, var(--page) 90%);
}

.intro h2,
.cta h2 {
	margin: 0 0 10px;
	font-size: clamp(1.4rem, 2.03vw, 1.8rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.intro p,
.cta p {
	max-width: 56%;
	min-width: min(100%, 520px);
	margin: 0 auto 18px;
	font-size: clamp(0.95rem, 1.26vw, 1.125rem);
	color: var(--text);
}

/* feature sections */
.feature {
	position: relative;
	overflow: hidden;
}

.feature::before,
.feature::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	background-size: 100% 100%;
	background-repeat: no-repeat;
	pointer-events: none;
}

.feature--desktop {
	aspect-ratio: 1425 / 734;
	background: linear-gradient(#225260 0%, #273f47 100%);
}

.feature--desktop::before {
	top: 0;
	height: 24vw;
	background-image: var(--wave-top);
}

.feature--mobile {
	aspect-ratio: 1425 / 820;
	background: linear-gradient(#273f47 0%, #225260 100%);
}

.feature--mobile::after {
	bottom: 0;
	height: 22vw;
	background-image: var(--wave-bot);
}

.feature-inner {
	display: contents;
}

.feature-text {
	position: absolute;
	z-index: 1;
}

.feature-text h2 {
	margin: 0 0 10px;
	font-size: clamp(1.4rem, 2.03vw, 1.8rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.eyebrow {
	margin: 0 0 8px;
	font: 300 clamp(0.8rem, 1.33vw, 1.19rem)/1.4 "Roboto", Arial, sans-serif;
	letter-spacing: 0.227em;
	text-transform: uppercase;
	color: #c1c1c1;
}

.feature-text p:last-child {
	margin: 0;
	font-size: clamp(0.9rem, 1.26vw, 1.125rem);
	color: #fff;
}

.feature-img {
	position: absolute;
	z-index: 1;
	display: block;
	max-width: none;
	height: auto;
}

.feature--desktop .feature-text {
	left: 15.4%;
	top: 28.7%;
	width: 24.35%;
}

.feature--desktop .feature-img {
	left: 41.8%;
	top: 14.4%;
	width: 80.8%;
}

.feature--mobile .feature-text {
	left: 62.3%;
	top: 31%;
	width: 27.3%;
}

.feature--mobile .feature-img {
	left: -17.1%;
	top: 3.7%;
	width: 83.7%;
}

/* call to action */
.cta {
	padding: 81px 1rem;
	text-align: center;
	background: var(--page);
}

.cta p {
	max-width: 75.8%;
}

.cta .btn {
	margin-top: 0.5rem;
}

/* footer */
.site-footer {
	padding: 13px 1rem;
	text-align: center;
	font-size: clamp(0.8rem, 1.26vw, 1.125rem);
	line-height: 1.728;
	color: #666;
	background: var(--footer);
}

.site-footer a {
	color: #adadad;
	text-decoration: none;
	white-space: nowrap;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	text-decoration: underline;
}

.site-footer .copy {
	white-space: nowrap;
}

.site-footer .copy a {
	color: inherit;
	text-decoration: none;
}

.site-footer .copy a:hover,
.site-footer .copy a:focus-visible {
	color: #adadad;
}

.site-footer .sep {
	margin: 0 0.5em;
	opacity: 0.8;
}

/* references */
.refs-head {
	position: relative;
	padding: clamp(3.5rem, 6vw, 5.5rem) 1rem 2.5rem;
	text-align: center;
	background: #225260;
}

.refs h1 {
	margin: 0;
	font-size: clamp(2rem, 4.2vw, 3.4rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #fff;
	text-wrap: balance;
}

.h1-bar {
	display: block;
	width: 72px;
	height: 4px;
	margin: 1.1rem auto 1.4rem;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--pink-1), var(--pink-2));
}

.lead {
	max-width: 40rem;
	margin: 0 auto 1.6rem;
	color: #c9d6da;
	text-wrap: balance;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
}

.chips a {
	padding: 0.5rem 1.1rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	font: 500 0.85rem/1 "Roboto", Arial, sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: rgba(255, 255, 255, 0.05);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.chips a span {
	margin-left: 0.4rem;
	color: var(--pink-2);
}

.chips a:hover,
.chips a:focus-visible {
	border-color: var(--pink-2);
	background: rgba(255, 255, 255, 0.1);
}

.band {
	position: relative;
	overflow: hidden;
}

.band--gray {
	background: var(--page);
	padding: clamp(1rem, 3vw, 2rem) 0;
}

.band--teal {
	--wh: 12vw;
	padding: calc(var(--wh) * 0.38) 0 calc(var(--wh) * 0.7 + 1rem);
	background: linear-gradient(#225260 0%, #273f47 100%);
}

.band--teal + .band--teal {
	margin-top: calc(var(--wh) * 0.45);
}

.band--teal::before,
.band--teal::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: var(--wh);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	pointer-events: none;
}

.band--teal::before {
	top: 0;
	background-image: var(--wave-top);
}

.band--teal::after {
	bottom: 0;
	background-image: var(--wave-bot);
}

/* vary the shape of each turquoise band */
.tv1 {
	--wh: 15vw;
}

.tv2 {
	--wh: 10vw;
}

.tv2::before,
.tv2::after {
	transform: scaleX(-1);
}

.tv3 {
	--wh: 13vw;
}

.tv3::before {
	transform: scaleX(-1);
}

/* the page starts in turquoise; it ends in a wave at half the height of the first video */
.band--gray:first-of-type {
	padding-top: 1.5rem;
}

.ref--first {
	position: relative;
}

.ref--first::before,
.ref--first::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	z-index: -1;
	pointer-events: none;
}

.ref--first::before {
	top: -20rem;
	bottom: calc(50% - 12vw * 0.35);
	background: #225260;
}

.ref--first::after {
	top: calc(50% - 12vw * 0.65);
	height: 12vw;
	background: var(--wave-bot) 0 0 / 100% 100% no-repeat;
}

.band-inner {
	position: relative;
	z-index: 1;
	width: min(1100px, 100% - 2rem);
	margin-inline: auto;
}

.ref-group {
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	font: 300 0.95rem/1.4 "Roboto", Arial, sans-serif;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #c1c1c1;
}

.ref {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(1rem, 3vw, 2.5rem);
	padding: 1.25rem 0;
}

/* phones: two per row, video | both texts | video */
.phone-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1rem, 2.5vw, 2rem);
	padding: clamp(1.25rem, 3.5vw, 3rem) 0;
}

.phone-texts {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 1rem;
}

.phone-texts .ref-text:nth-child(2) {
	align-self: end;
	padding-bottom: 12%;
}

.ref-text h3 {
	margin: 0 0 0.4rem;
	font-size: 1.2rem;
	color: #fff;
}

.ref-text p {
	margin: 0;
	font-size: 1rem;
	color: var(--text);
}

.ref-media video {
	display: block;
	cursor: pointer;
	width: 100%;
	height: auto;
	max-height: 560px;
	border-radius: 8px;
	background: #000;
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}

.phone-row .ref-media video {
	max-height: none;
}

.video-ph {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	border: 1px dashed rgba(255, 255, 255, 0.25);
	border-radius: 6px;
	color: var(--muted);
	font-size: 0.85rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	background: rgba(0, 0, 0, 0.25);
}

.video-ph--phone {
	aspect-ratio: 9 / 16;
	max-height: 360px;
	margin-inline: auto;
}

/* legal pages */
.legal {
	width: min(46rem, 100% - 2rem);
	margin: 0 auto;
	padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.legal h1 {
	margin: 0 0 1.5rem;
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	font-weight: 700;
	color: #fff;
}

.legal h2 {
	margin: 2rem 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #fff;
}

.legal p {
	margin: 0 0 0.9rem;
	font-size: 1rem;
	font-weight: 300;
}

.legal a {
	color: var(--pink-2);
}

/* small screens: stack the layout */
@media (max-width: 900px) {
	.hero {
		min-height: 0;
		padding: 62vw 1rem 2.5rem;
		background-position: 50% 0;
		background-size: 100% auto;
	}

	.btn {
		padding: 0.7rem 1.4rem;
		font-size: 0.8rem;
		line-height: 1.4;
		letter-spacing: 0.16em;
	}

	.hero-text {
		margin-left: 0;
		width: auto;
		min-width: 0;
	}

	.feature {
		aspect-ratio: auto;
		padding: calc(24vw * 0.8) 0 3rem;
	}

	.feature--mobile {
		padding: 3rem 0 calc(22vw * 0.8 + 2rem);
	}

	.feature-inner {
		display: grid;
		gap: 2rem;
		width: min(1180px, 100% - 2rem);
		margin-inline: auto;
	}

	.feature-text,
	.feature-img {
		position: static;
		width: auto !important;
	}

	.feature-img {
		width: 100% !important;
		max-width: 100%;
	}

	.feature--mobile .feature-text {
		order: -1;
	}

	.intro p,
	.cta p {
		max-width: 100%;
		min-width: 0;
	}

	.ref {
		grid-template-columns: 1fr;
	}

	.ref-text {
		order: -1;
	}

	.phone-row {
		grid-template-columns: minmax(0, 1fr);
		max-width: 340px;
		margin-inline: auto;
		padding: 0;
	}

	.phone-texts {
		display: contents;
	}

	.phone-texts .ref-text:nth-child(2) {
		align-self: auto;
		padding-bottom: 0;
	}

	.phone-row .pt-a { order: 1; padding-top: 1.25rem; }
	.phone-row .pv-a { order: 2; }
	.phone-row .pt-b { order: 3; padding-top: 1.25rem; }
	.phone-row .pv-b { order: 4; padding-bottom: 1.25rem; }
}

@media (max-width: 600px) {
	.bar nav .nl {
		display: none;
	}

	.site-footer {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.3rem 1rem;
	}

	.site-footer .copy {
		flex-basis: 100%;
	}

	.site-footer .sep {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}

@media (max-width: 900px) {
	.phone-row .ref-media {
		width: min(100%, 240px);
		margin-inline: auto;
	}
}

@media (max-width: 900px) {
	.ref,
	.phone-row {
		padding-block: 1.25rem 2.75rem;
	}
}

.ref-list + .ref-group {
	margin-top: 3rem;
}

/* homepage: lighter, airier paragraphs */
.hero p,
.intro p,
.cta p,
.feature-text p {
	font-weight: 300;
	line-height: 1.85;
}

.feature-text .eyebrow {
	font-weight: 500;
}

.intro p,
.cta p {
	max-width: 66%;
	text-wrap: balance;
}

/* references on wide screens: landscape videos 1.5x larger */
@media (min-width: 1101px) {
	.refs .band-inner {
		width: min(1180px, 100% - 2rem);
	}

	.ref {
		grid-template-columns: minmax(0, 750px) minmax(0, 1fr);
	}

	.ref .ref-media video {
		max-height: none;
	}
}

/* home: the hero starts at the very top, the top bar sits on top of it */
@media (min-width: 901px) {
	body:has(.hero) .site-header {
		margin-bottom: -42px;
	}
}

.chips a.chip-cu {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1.1rem;
}

.chip-cu img {
	display: block;
	width: auto;
	height: 1.45rem;
}

.chips a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 2.25rem;
	padding-block: 0;
}
