/* PoolLoom product site — hand-built, no framework. */
@font-face {
	font-family: "Fraunces";
	src: url("./assets/fonts/fraunces-latin-var.woff2") format("woff2");
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Manrope";
	src: url("./assets/fonts/manrope-latin-var.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--navy: #061f2b;
	--ink: #03151e;
	--aqua: #50e3d2;
	--teal: #006f6a;
	--cream: #f7f5ef;
	--mist: #e8f3f1;
	--white: #ffffff;
	--slate: #51656b;
	--line: #d7e0dd;
	--radius: 16px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--display: "Fraunces", Georgia, "Times New Roman", serif;
	--max: 1240px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--navy);
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 450;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--teal);
	text-underline-offset: .18em;
}

h1, h2, h3, h4 {
	margin: 0;
	font-family: var(--display);
	font-weight: 420;
	line-height: 1.02;
	letter-spacing: -.025em;
	text-wrap: balance;
}

p {
	margin: 0;
	text-wrap: pretty;
}

::selection {
	background: var(--aqua);
	color: var(--ink);
}

:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 4px;
}

.wrap {
	width: min(100% - 48px, var(--max));
	margin-inline: auto;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--teal);
}

.eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	background: var(--teal);
}

.lede {
	max-width: 60ch;
	color: var(--slate);
	font-size: 18px;
	line-height: 1.65;
}

.muted {
	color: var(--slate);
}

.small {
	font-size: 13px;
	line-height: 1.55;
}

.note {
	color: var(--slate);
	font-size: 12px;
	line-height: 1.55;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 12px 20px;
	border: 1px solid var(--navy);
	border-radius: 8px;
	background: var(--navy);
	color: var(--cream);
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.btn:hover {
	background: var(--teal);
	border-color: var(--teal);
	color: var(--white);
}

.btn--ghost {
	background: transparent;
	color: var(--navy);
	border-color: rgba(6, 31, 43, .3);
}

.btn--ghost:hover {
	background: var(--navy);
	color: var(--cream);
	border-color: var(--navy);
}

.btn--small {
	min-height: 38px;
	padding: 9px 14px;
	font-size: 13px;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

/* Header */
.utility {
	background: var(--ink);
	color: rgba(247, 245, 239, .72);
	font-size: 12px;
	letter-spacing: .01em;
}

.utility__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 36px;
}

.utility__inner p {
	margin: 0;
}

.utility__inner a {
	color: var(--cream);
	text-decoration: none;
}

.utility__inner a:hover {
	color: var(--aqua);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(247, 245, 239, .94);
	border-bottom: 1px solid rgba(6, 31, 43, .1);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 78px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--navy);
	text-decoration: none;
	font-family: var(--display);
	font-size: 25px;
	font-weight: 500;
	letter-spacing: -.035em;
	white-space: nowrap;
}

.brand__mark {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--navy);
	display: grid;
	place-items: center;
	flex: 0 0 auto;
}

.brand__mark svg {
	width: 26px;
	height: 26px;
}

.nav {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-inline-start: auto;
}

.nav a {
	color: var(--navy);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	padding-block: 6px;
}

.nav a:hover {
	color: var(--teal);
}

.header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.menu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: transparent;
	color: var(--navy);
	cursor: pointer;
}

.menu-toggle svg {
	width: 20px;
	height: 20px;
	margin: auto;
}

/* Hero */
.hero {
	padding-block: 72px 64px;
	overflow: clip;
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: 56px;
	align-items: center;
}

.hero h1 {
	max-width: 12ch;
	font-size: clamp(46px, 6.2vw, 82px);
	line-height: .96;
	letter-spacing: -.045em;
}

.hero h1 em {
	font-style: normal;
	color: var(--teal);
}

.hero__lede {
	max-width: 48ch;
	margin-top: 20px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--slate);
}

.hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	color: var(--slate);
	font-size: 12px;
	font-weight: 500;
}

.hero__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hero__meta span::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--teal);
}

.browser {
	position: relative;
	border: 1px solid rgba(6, 31, 43, .14);
	border-radius: 14px;
	background: var(--white);
	box-shadow: 0 24px 70px rgba(3, 21, 30, .13);
	overflow: hidden;
}

.browser__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 12px;
	background: #f1eee6;
	border-bottom: 1px solid rgba(6, 31, 43, .1);
}

.browser__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #c6cbc5;
}

.browser__address {
	flex: 1;
	margin-inline-start: 8px;
	padding: 4px 10px;
	border-radius: 4px;
	background: rgba(255, 255, 255, .75);
	color: #5e6b67;
	font-size: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.browser img {
	width: 100%;
	aspect-ratio: 16 / 11;
	object-fit: cover;
	object-position: top;
}

.browser--dark .browser__bar {
	background: #0b222c;
	border-color: rgba(255, 255, 255, .08);
}

.browser--dark .browser__address {
	background: rgba(255, 255, 255, .08);
	color: rgba(255, 255, 255, .55);
}

.browser__mobile {
	position: absolute;
	right: -18px;
	bottom: -26px;
	width: 118px;
	border: 4px solid var(--ink);
	border-radius: 22px;
	background: var(--ink);
	box-shadow: 0 18px 40px rgba(3, 21, 30, .25);
	overflow: hidden;
}

.browser__mobile img {
	width: 100%;
	aspect-ratio: 9 / 18;
	object-fit: cover;
	object-position: top;
	border-radius: 16px;
}

/* Page proof bar */
.proof {
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--white);
}

.proof__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.proof__item {
	padding: 20px 24px;
	border-inline-start: 1px solid var(--line);
}

.proof__item:first-child {
	border-inline-start: 0;
	padding-inline-start: 0;
}

.proof__item strong {
	display: block;
	font-size: 14px;
	font-weight: 600;
}

.proof__item span {
	display: block;
	margin-top: 2px;
	color: var(--slate);
	font-size: 13px;
	line-height: 1.5;
}

/* Sections */
.section {
	padding-block: 88px;
}

.section--white {
	background: var(--white);
}

.section--mist {
	background: var(--mist);
}

.section--navy {
	background: var(--navy);
	color: var(--cream);
}

.section--navy h2,
.section--navy h3 {
	color: var(--cream);
}

.section--navy .eyebrow { color: var(--aqua); }

.section--navy .eyebrow::before { background: var(--aqua); }

.section--navy .lede {
	color: rgba(247, 245, 239, .72);
}

.section-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 32px;
	align-items: end;
	margin-bottom: 40px;
}

.section-head h2 {
	max-width: 17ch;
	font-size: clamp(32px, 4vw, 52px);
}

.section-head .lede {
	margin-top: 14px;
}

.split {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: 64px;
	align-items: center;
}

.split--reverse .split__copy {
	order: 2;
}

.split--reverse .split__media {
	order: 1;
}

.split__copy h2 {
	font-size: clamp(32px, 4vw, 52px);
}

.split__copy .lede {
	margin-top: 16px;
}

.split__media {
	position: relative;
}

.split__media img {
	border-radius: var(--radius);
	box-shadow: 0 18px 50px rgba(3, 21, 30, .1);
}

.split__media--plain img {
	box-shadow: none;
	border: 1px solid var(--line);
}

/* Numbered list */
.number-list {
	display: grid;
	gap: 20px;
	margin-top: 28px;
}

.number-list__item {
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 14px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.number-list__num {
	font-family: var(--display);
	font-size: 22px;
	line-height: 1;
	color: var(--teal);
}

.number-list__item h3 {
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
}

.number-list__item p {
	margin-top: 4px;
	color: var(--slate);
	font-size: 14px;
	line-height: 1.6;
}

.section--navy .number-list__item {
	border-color: rgba(247, 245, 239, .16);
}

.section--navy .number-list__item p {
	color: rgba(247, 245, 239, .68);
}

.section--navy .number-list__num {
	color: var(--aqua);
}

/* Screenshot gallery */
.gallery {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 16px;
}

.shot {
	position: relative;
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	background: var(--white);
}

.shot img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.shot--tall img {
	aspect-ratio: 16 / 10;
}

.shot__label {
	position: absolute;
	left: 14px;
	bottom: 14px;
	padding: 6px 10px;
	border-radius: 4px;
	background: rgba(3, 21, 30, .78);
	color: var(--cream);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .01em;
	backdrop-filter: blur(6px);
}

.gallery__small {
	display: grid;
	gap: 16px;
}

.shot--small img {
	aspect-ratio: 16 / 9;
}

/* Compare */
.compare-frame {
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--white);
	box-shadow: 0 18px 50px rgba(3, 21, 30, .1);
}

.compare-frame img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/* Comparison table */
.table-wrap {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--white);
}

table {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
	font-size: 14px;
}

th,
td {
	padding: 14px 18px;
	text-align: left;
	border-bottom: 1px solid var(--line);
	vertical-align: middle;
}

thead th {
	background: var(--mist);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .01em;
}

tbody tr:last-child td {
	border-bottom: 0;
}

td:not(:first-child),
th:not(:first-child) {
	text-align: center;
}

.check {
	color: var(--teal);
	font-weight: 700;
}

.dash {
	color: #9aa8a5;
}

/* Included grid */
.included {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.included__item {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--white);
}

.included__item strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
}

.included__item p {
	margin-top: 4px;
	color: var(--slate);
	font-size: 13px;
	line-height: 1.55;
}

/* Install steps */
.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--line);
}

.step {
	padding: 24px 24px 24px 0;
	border-inline-end: 1px solid var(--line);
}

.step:last-child {
	border-inline-end: 0;
	padding-inline-end: 0;
}

.step__num {
	display: block;
	margin-bottom: 24px;
	font-family: var(--display);
	font-size: 36px;
	line-height: 1;
	color: var(--teal);
}

.step h3 {
	font-family: var(--sans);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
}

.step p {
	margin-top: 4px;
	color: var(--slate);
	font-size: 13px;
	line-height: 1.55;
}

/* Pricing */
.pricing {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: 64px;
	align-items: start;
}

.price-card {
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: 0 18px 50px rgba(3, 21, 30, .08);
}
.price-stack {
	display: grid;
	gap: 16px;
}
.price-card--slim {
	padding: 24px;
	box-shadow: none;
}
.price-card--slim .price {
	font-size: 40px;
	margin: 6px 0 4px;
}
.price-card--slim .btn {
	margin-top: 16px;
}

.price-card__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--slate);
}

.price {
	margin: 8px 0 4px;
	font-family: var(--display);
	font-size: 64px;
	font-weight: 420;
	line-height: 1;
	letter-spacing: -.04em;
	color: var(--navy);
	font-variant-numeric: tabular-nums;
}

.price span {
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--slate);
}

.price-list {
	list-style: none;
	margin: 24px 0;
	padding: 0;
	display: grid;
	gap: 10px;
	font-size: 14px;
	color: var(--slate);
}

.price-list li {
	position: relative;
	padding-inline-start: 22px;
}

.price-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--teal);
	font-weight: 700;
}

.price-card .btn {
	width: 100%;
}

.price-card .note {
	margin-top: 12px;
}

/* FAQ */
.faq {
	max-width: 900px;
	margin-inline: auto;
}

.faq details {
	border-bottom: 1px solid var(--line);
}

.faq details:first-child {
	border-top: 1px solid var(--line);
}

.faq summary {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 0;
	cursor: pointer;
	list-style: none;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: "+";
	color: var(--teal);
	font-size: 22px;
	line-height: 1;
	font-weight: 400;
}

.faq details[open] summary::after {
	content: "−";
}

.faq details p {
	margin: 0 0 20px;
	max-width: 72ch;
	color: var(--slate);
	font-size: 14px;
	line-height: 1.7;
}

/* Final */
.final {
	padding-block: 88px;
	background: var(--navy);
	color: var(--cream);
	text-align: center;
}

.final h2 {
	max-width: 18ch;
	margin-inline: auto;
	font-size: clamp(34px, 5vw, 56px);
	color: var(--cream);
}

.final p {
	max-width: 54ch;
	margin: 16px auto 0;
	color: rgba(247, 245, 239, .72);
}

.final .btn-row {
	justify-content: center;
}

.final .btn {
	background: var(--cream);
	border-color: var(--cream);
	color: var(--navy);
}

.final .btn:hover {
	background: var(--aqua);
	border-color: var(--aqua);
	color: var(--ink);
}

/* Footer */
.site-footer {
	padding-block: 48px 24px;
	background: var(--ink);
	color: var(--cream);
}

.footer__grid {
	display: grid;
	grid-template-columns: 1.4fr .8fr .8fr;
	gap: 48px;
}

.footer__brand p {
	max-width: 38ch;
	margin-top: 12px;
	color: rgba(247, 245, 239, .64);
	font-size: 13px;
	line-height: 1.6;
}

.footer__grid h3 {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	color: rgba(247, 245, 239, .55);
}

.footer__grid ul {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.footer__grid a {
	color: rgba(247, 245, 239, .78);
	font-size: 13px;
	text-decoration: none;
}

.footer__grid a:hover {
	color: var(--aqua);
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	margin-top: 48px;
	padding-top: 18px;
	border-top: 1px solid rgba(247, 245, 239, .14);
	color: rgba(247, 245, 239, .64);
	font-size: 12px;
}

.footer__bottom p {
	margin: 0;
}

/* Responsive */
@media (max-width: 1000px) {
	.hero__grid,
	.split,
	.pricing {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.hero h1 {
		max-width: 14ch;
	}

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

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

	.split--reverse .split__copy,
	.split--reverse .split__media {
		order: 0;
	}

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

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

	.step:nth-child(2) {
		border-inline-end: 0;
	}

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

	.footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 780px) {
	.wrap {
		width: min(100% - 32px, var(--max));
	}

	.utility__inner p:first-child {
		display: none;
	}

	.header__inner {
		min-height: 66px;
	}

	.nav {
		position: absolute;
		inset-inline: 16px;
		top: calc(100% + 8px);
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px;
		border: 1px solid var(--line);
		border-radius: 12px;
		background: var(--cream);
		box-shadow: 0 18px 50px rgba(3, 21, 30, .12);
	}

	.nav.is-open {
		display: flex;
	}

	.nav a {
		padding: 12px;
		font-size: 15px;
	}

	.header__actions .btn {
		display: none;
	}

	.menu-toggle {
		display: block;
	}

	.hero {
		padding-block: 48px 56px;
	}

	.hero h1 {
		font-size: clamp(42px, 12vw, 62px);
	}

	.hero__lede {
		font-size: 17px;
	}

	.browser__mobile {
		right: -8px;
		bottom: -18px;
		width: 92px;
	}

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

	.proof__item {
		border-inline-start: 0;
		border-bottom: 1px solid var(--line);
		padding: 14px 0;
	}

	.proof__item:last-child {
		border-bottom: 0;
	}

	.section {
		padding-block: 56px;
	}

	.section-head {
		grid-template-columns: 1fr;
		gap: 16px;
		align-items: start;
	}

	.gallery,
	.gallery__small,
	.included {
		grid-template-columns: 1fr;
	}

	.steps {
		grid-template-columns: 1fr;
		border-top: 1px solid var(--line);
	}

	.step {
		padding: 20px 0;
		border-inline-end: 0;
		border-bottom: 1px solid var(--line);
	}

	.step:last-child {
		border-bottom: 0;
	}

	.step__num {
		margin-bottom: 12px;
	}

	.price {
		font-size: 56px;
	}

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

	.final {
		padding-block: 56px;
	}
}

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

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}


/* Article pages */
.page-hero {
	padding-block: 72px 48px;
	border-bottom: 1px solid var(--line);
	background: var(--mist);
}

.page-hero h1 {
	max-width: 18ch;
	font-size: clamp(36px, 5vw, 60px);
}

.page-hero .lede {
	margin-top: 16px;
}

.article {
	padding-block: 56px 88px;
}

.article__body {
	max-width: 760px;
	margin-inline: auto;
}

.article__body h2 {
	margin: 40px 0 14px;
	font-size: clamp(28px, 3.4vw, 38px);
}

.article__body h3 {
	margin: 28px 0 10px;
	font-family: var(--sans);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0;
}

.article__body p,
.article__body li {
	color: var(--slate);
	font-size: 16px;
	line-height: 1.75;
}

.article__body p {
	margin: 0 0 16px;
}

.article__body ul,
.article__body ol {
	margin: 0 0 20px;
	padding-left: 22px;
}

.article__body li {
	margin: 6px 0;
}

.article__body a {
	color: var(--teal);
}

.article__aside {
	margin: 32px 0;
	padding: 20px 24px;
	border-left: 2px solid var(--teal);
	background: var(--white);
}

.article__aside p {
	margin: 0;
	font-size: 14px;
}

.article__meta {
	margin-top: 18px;
	color: var(--slate);
	font-size: 13px;
}

.article-cta {
	margin-top: 40px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--white);
}

.article-cta h2 {
	margin: 0 0 8px;
	font-size: 28px;
}

.article-cta p {
	margin: 0 0 16px;
}

@media (max-width: 780px) {
	.page-hero {
		padding-block: 48px 32px;
	}

	.article {
		padding-block: 40px 56px;
	}
}

@media (max-width: 480px) {
	.hero .btn-row .btn,
	.final .btn-row .btn {
		width: 100%;
	}

	.hero__meta {
		display: grid;
		gap: 6px;
	}
}
