/* Blockwise website: calm and Apple-like. White page, soft grey bands, big
 * centered headlines, product shots as the heroes, one violet accent. */
:root {
	--bg: #ffffff;
	--band: #f5f5f7;
	--tile: #ffffff;
	--text: #1d1d1f;
	--muted: #6e6e73;
	--line: #d2d2d7;
	--accent: #6c5ce7;
	--link: #5a4bd6;
	--shot: 0 40px 90px rgba(29, 29, 31, 0.16), 0 8px 24px rgba(29, 29, 31, 0.08);
	color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #000000;
		--band: #101014;
		--tile: #1c1c21;
		--text: #f5f5f7;
		--muted: #a1a1a6;
		--line: #38383d;
		--accent: #8b7cf6;
		--link: #a99cff;
		--shot: 0 40px 90px rgba(0, 0, 0, 0.6);
	}
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 52px;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, "Segoe UI", Roboto, sans-serif;
	letter-spacing: -0.022em;
	-webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
	margin: 0;
	text-wrap: balance;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
	font-weight: 700;
	letter-spacing: -0.03em;
}
p {
	margin: 0;
}
a {
	color: var(--link);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}
:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}
.wrap {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 24px;
}
.muted {
	color: var(--muted);
}

/* --- the bar ------------------------------------------------------------------- */

.bar {
	position: sticky;
	top: 0;
	z-index: 10;
	background: color-mix(in srgb, var(--bg) 78%, transparent);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.bar__in {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: 1040px;
	height: 52px;
	margin: 0 auto;
	padding: 0 24px;
	font-size: 13px;
	letter-spacing: -0.01em;
}
.brand {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text);
	font-size: 15px;
	font-weight: 600;
}
.brand img {
	border-radius: 6px;
}
.bar nav {
	display: flex;
	gap: 28px;
	margin-left: auto;
}
.bar nav a {
	color: var(--text);
	opacity: 0.8;
}
.bar nav a:hover {
	opacity: 1;
	text-decoration: none;
}
.lang {
	display: inline-block;
	padding: 4px 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* --- buttons ------------------------------------------------------------------ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border-radius: 980px;
	background: var(--accent);
	color: #fff;
	font-size: 17px;
	font-weight: 500;
}
.btn:hover {
	text-decoration: none;
	filter: brightness(1.08);
}
.btn--small {
	min-height: 28px;
	padding: 0 12px;
	font-size: 12px;
}
.more {
	font-size: 17px;
}
.more::after {
	content: " ›";
}

/* --- hero ------------------------------------------------------------------------ */

.hero {
	padding: 88px 24px 0;
	text-align: center;
	overflow: hidden;
}
.hero__icon {
	margin: 0 auto 28px;
	border-radius: 20px;
	box-shadow: 0 12px 30px rgba(30, 42, 68, 0.25);
}
.hero h1 {
	max-width: 1000px;
	margin: 0 auto;
	font-size: clamp(38px, 6vw, 72px);
	line-height: 1.04;
}
.hero h1 span {
	display: block;
}
.lead {
	text-wrap: balance;
	max-width: 640px;
	margin: 24px auto 0;
	color: var(--muted);
	font-size: clamp(19px, 2.2vw, 24px);
	line-height: 1.38;
	letter-spacing: -0.015em;
}
.cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 28px;
	margin-top: 32px;
}
.note {
	margin-top: 18px;
	color: var(--muted);
	font-size: 14px;
}
.stage {
	position: relative;
	max-width: 1040px;
	margin: 64px auto 0;
	padding-bottom: 72px;
}

/* --- product shots ----------------------------------------------------------------- */

.window {
	position: relative;
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--shot);
	container-type: inline-size;
}
/* The screenshots leave room for the window buttons: draw them there */
.dots {
	position: absolute;
	top: 2.35cqw;
	left: 1.6cqw;
	display: flex;
	gap: 0.65cqw;
}
.dots i {
	width: 0.97cqw;
	height: 0.97cqw;
	border-radius: 50%;
	background: #ff5f57;
}
.dots i:nth-child(2) {
	background: #febc2e;
}
.dots i:nth-child(3) {
	background: #28c840;
}
.phone {
	position: absolute;
	right: -2%;
	bottom: 24px;
	width: 22%;
	border: 7px solid #1d1d1f;
	border-radius: 34px;
	box-shadow: var(--shot);
}

/* --- sections ----------------------------------------------------------------------- */

.band {
	padding: 110px 0;
	background: var(--band);
}
.showcase {
	max-width: 1088px;
	margin: 0 auto;
	padding: 110px 24px;
	text-align: center;
}
.title {
	font-size: clamp(32px, 5vw, 56px);
	line-height: 1.07;
	text-align: center;
}
.window--wide {
	margin-top: 56px;
}

/* how it works: four quiet columns */
.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px;
	margin: 64px 0 0;
	padding: 0;
	list-style: none;
}
.num {
	display: block;
	margin-bottom: 14px;
	color: var(--accent);
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}
.steps h3 {
	margin-bottom: 8px;
	font-size: 21px;
}
.steps p {
	color: var(--muted);
	font-size: 15px;
	line-height: 1.5;
}

/* features: a bento grid */
.bento {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 64px;
}
.tile {
	min-height: 220px;
	padding: 36px 32px;
	border-radius: 28px;
	background: var(--tile);
}
.tile--wide {
	grid-column: span 2;
}
.tile--full {
	grid-column: 1 / -1;
	min-height: 0;
}
.tile h3 {
	margin-bottom: 12px;
	font-size: 28px;
	line-height: 1.1;
}
.tile p {
	max-width: 46ch;
	color: var(--muted);
	font-size: 17px;
}
.tile--accent {
	background: linear-gradient(135deg, #6c5ce7, #8f6cf0);
	color: #fff;
}
.tile--accent p {
	color: rgba(255, 255, 255, 0.85);
}

/* your data: a dark band */
.dark {
	padding: 110px 0;
	background: #000;
	color: #f5f5f7;
	text-align: center;
}
.dark .lead {
	color: #a1a1a6;
}
.cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	margin-top: 64px;
	text-align: left;
}
.cols > div {
	padding-top: 20px;
	border-top: 1px solid #38383d;
}
.cols h3 {
	margin-bottom: 8px;
	font-size: 21px;
}
.cols p {
	color: #a1a1a6;
	font-size: 15px;
}

/* downloads */
.downloads {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 56px 0 36px;
	text-align: center;
}
.dl {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 28px 28px;
	border-radius: 28px;
	background: var(--band);
}
.dl__icon {
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	fill: none;
	stroke: var(--text);
	stroke-width: 2.4;
	stroke-linejoin: round;
	stroke-linecap: round;
}
.dl h3 {
	font-size: 28px;
}
.req {
	min-height: 2.9em;
	margin: 6px 0 20px;
	color: var(--muted);
	font-size: 14px;
}
.dl .btn {
	font-size: 15px;
}
.dl details {
	width: 100%;
	margin-top: 20px;
	color: var(--muted);
	font-size: 14px;
	text-align: left;
}
.dl summary {
	color: var(--link);
	text-align: center;
	cursor: pointer;
	list-style: none;
}
.dl summary::-webkit-details-marker {
	display: none;
}
.dl summary::after {
	content: " ›";
}
.dl details[open] summary::after {
	content: " ⌄";
}
.dl ol {
	margin: 14px 0 0;
	padding-left: 1.2em;
}
.dl li + li {
	margin-top: 6px;
}

/* --- footer --------------------------------------------------------------------------- */

.foot {
	padding: 22px 0 36px;
	background: var(--band);
	color: var(--muted);
	font-size: 12px;
}
.foot .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

/* --- smaller screens ------------------------------------------------------------------- */

@media (max-width: 900px) {
	.steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.bento,
	.cols,
	.downloads {
		grid-template-columns: minmax(0, 1fr);
	}
	.tile--wide,
	.tile--full {
		grid-column: auto;
	}
	.tile {
		min-height: 0;
	}
}
@media (max-width: 640px) {
	.bar nav {
		display: none;
	}
	.lang {
	display: inline-block;
		margin-left: auto;
	}
	.steps {
		grid-template-columns: minmax(0, 1fr);
	}
	.hero {
		padding-top: 56px;
	}
	.band,
	.dark,
	.showcase {
		padding-top: 72px;
		padding-bottom: 72px;
	}
	.phone {
		width: 30%;
		right: -4%;
		border-width: 4px;
		border-radius: 20px;
	}
}
