/* SPDX-License-Identifier: GPL-3.0-or-later */
/* The home page of biblioviva.org: scroll effects in the style of Apple's product pages — sections
   driven by the scroll progress (--p, 0…1) written by the page's one short script (home/home.js);
   html.anim is set only when the script runs, the reader has not asked for reduced motion and the
   page is not on a touch screen (a phone, a tablet: there the effects stutter and slow the scroll), so
   without it every section is a plain, complete page; html.js (the script runs) is enough for the
   desk's steps, which change state rather than move. */

body.layout-home {
	background: #fff;
}
.layout-home .i {
	stroke-width: 1.8;
}
/* ---------------------------------------------------------------- global nav */
.gn {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgb(255 255 255 / 0.78);
	backdrop-filter: saturate(1.8) blur(20px);
	border-bottom: 1px solid rgb(0 0 0 / 0.07);
}
.gn-row {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 1100px;
	margin: 0 auto;
	height: 52px;
	padding: 0 16px;
}
.gn-brand {
	display: flex;
	gap: 8px;
	align-items: center;
	color: var(--ink);
	text-decoration: none;
	font-weight: 800;
	margin-right: auto;
}
.gn-brand img {
	width: 30px;
	height: 30px;
	object-fit: contain;
}
.gn-links {
	display: flex;
	gap: 2px;
}
.gn-links a,
.gn-ico {
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--ink-2);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 550;
}
.gn-links a:hover,
.gn-ico:hover {
	background: rgb(0 0 0 / 0.05);
	color: var(--ink);
}
.gn-ico {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	color: var(--ink);
}
.gn-ico .i {
	width: 20px;
	height: 20px;
}
.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 10px 22px;
	border-radius: 999px;
	font-weight: 650;
	text-decoration: none;
	border: 1px solid transparent;
	transition:
		background 0.2s,
		transform 0.2s;
}
.pill:hover {
	transform: scale(1.03);
}
.pill-blue {
	background: var(--primary);
	color: #fff;
}
.pill-blue:hover {
	background: #0062c4;
	color: #fff;
}
.pill-line {
	border-color: var(--primary);
	color: var(--primary);
}
.pill-line:hover {
	background: var(--primary-tint);
	color: var(--primary);
}
@media (max-width: 820px) {
	.gn-links {
		display: none;
	}
}
/* the language switch, the same as the documentation's */
.lang {
	display: inline-flex;
	align-items: center;
	padding: 3px;
	border-radius: 10px;
	background: #eef2f7;
}
.lang > .i {
	width: 18px;
	height: 18px;
	margin: 0 4px 0 6px;
	color: var(--ink-2);
}
.lang a {
	padding: 5px 9px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.82rem;
	color: var(--ink-2);
	text-decoration: none;
}
.lang a:hover {
	background: rgb(255 255 255 / 0.7);
}
.lang a[aria-current] {
	background: #fff;
	color: var(--ink);
	box-shadow: var(--shadow-1);
}
/* ---------------------------------------------------------------- hero (pinned, the devices come forward) */
.h-hero-in {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: clamp(24px, 6vh, 64px) 16px 48px;
	overflow: hidden;
}
.h-hero h1 {
	margin: 0;
	font-size: clamp(2.8rem, 8.4vw, 6.4rem);
	line-height: 1.02;
	letter-spacing: -0.045em;
	font-weight: 850;
}
.h-hero .sub {
	max-width: 40rem;
	margin: 18px auto 26px;
	font-size: clamp(1.1rem, 2vw, 1.45rem);
	color: var(--ink-2);
	line-height: 1.45;
}
.h-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}
/* ---------------------------------------------------------------- sections */
.h-sec {
	padding: clamp(50px, 8.4vw, 98px) 16px;
}
.h-sec.alt {
	background: #f5f5f7;
}
.h-wrap {
	max-width: 1100px;
	margin: 0 auto;
}
.h-title {
	font-size: clamp(2.2rem, 5.6vw, 4rem);
	line-height: 1.05;
	letter-spacing: -0.04em;
	font-weight: 800;
	margin: 0 0 16px;
}
.h-lead {
	font-size: clamp(1.1rem, 1.8vw, 1.35rem);
	color: var(--ink-2);
	max-width: 42rem;
	margin: 0;
}
/* the installation's lead stays on one line on a wide window */
#installa .h-lead {
	max-width: none;
}
/* a statement whose words light up as it scrolls by */
.h-statement {
	padding: clamp(50px, 8.4vw, 98px) 16px;
}
.h-statement p {
	max-width: 1000px;
	margin: 0 auto;
	font-size: clamp(2rem, 5.2vw, 4.2rem);
	line-height: 1.12;
	letter-spacing: -0.035em;
	font-weight: 800;
}
.words > span {
	transition: opacity 0.15s linear;
}
.anim .words > span {
	opacity: clamp(0.14, calc(var(--p) * var(--wn) * 2 - var(--i) - 1), 1);
}
/* the desk, told in four steps beside a pinned screen */
.h-desk .h-wrap {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: clamp(24px, 5vw, 72px);
}
.desk-stage {
	position: sticky;
	top: 90px;
	align-self: start;
}
.desk-steps .step {
	padding: 24px 0;
}
.js .desk-steps .step {
	min-height: 30vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	opacity: 0.25;
	transition: opacity 0.4s;
}
.js [data-step="1"] .step[data-n="1"],
.js [data-step="2"] .step[data-n="2"],
.js [data-step="3"] .step[data-n="3"],
.js [data-step="4"] .step[data-n="4"] {
	opacity: 1;
}
.step .n {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--c-circ);
	color: #fff;
	font-weight: 800;
	margin-bottom: 12px;
}
.step h3 {
	margin: 0 0 8px;
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	letter-spacing: -0.03em;
	line-height: 1.1;
}
.step p {
	margin: 0;
	font-size: 1.1rem;
	color: var(--ink-2);
}
@media (max-width: 860px) {
	.h-desk .h-wrap {
		grid-template-columns: 1fr;
	}
	.desk-stage {
		top: 60px;
		z-index: 2;
		background: #fff;
		padding: 8px 0;
	}
	.js .desk-steps .step {
		min-height: 26vh;
	}
}
.desk .wf-app {
	aspect-ratio: 16 / 11;
}
.desk-body {
	flex: 1;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #f8fafc;
	font-size: clamp(0.62rem, 1.1vw, 0.82rem);
	line-height: 1.3;
}
.desk-scan {
	position: relative;
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 10px 12px;
	border: 2px solid var(--c-circ);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-circ) 15%, transparent);
	min-height: 2.8em;
}
.desk-scan .i {
	color: var(--c-circ);
}
.desk-scan .dt {
	position: relative;
	flex: 1;
	height: 1.3em;
}
.desk-scan .dt > span {
	position: absolute;
	inset: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.desk-grid {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 12px;
	flex: 1;
}
.desk-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 10px;
}
.desk-patron {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}
.desk-patron .ph {
	flex: none;
	width: 3.6em;
	height: 4.4em;
	border-radius: 8px;
	background: linear-gradient(160deg, #fde68a, #f59e0b);
}
.desk-patron b {
	display: block;
	font-size: 1.08em;
}
.desk-patron span {
	color: var(--muted);
}
.desk-patron .badge {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #dbeafe;
	color: #1e40af;
	font-weight: 700;
}
.desk-msgs {
	position: relative;
	min-height: 6em;
}
.desk-msg {
	position: absolute;
	inset: 0 0 auto;
	display: flex;
	gap: 8px;
	padding: 10px;
	border-radius: 10px;
	border: 1px solid;
}
.desk-msg b {
	display: block;
}
.desk-msg em {
	display: inline-block;
	margin-top: 6px;
	font-style: normal;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 7px;
	background: #fff;
	border: 1px solid currentColor;
}
.desk-msg.ok {
	background: #dcfce7;
	border-color: #86efac;
	color: #14532d;
}
.desk-msg.bad {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #7f1d1d;
}
.desk-msg.wait {
	background: #fff;
	border-color: var(--line);
	color: var(--muted);
	align-items: center;
}
.desk-msg.wait::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--c-circ);
	animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
	50% {
		transform: scale(1.6);
		opacity: 0.4;
	}
}
.desk-msg .i {
	flex: none;
	margin-top: 1px;
}
.desk-list .row {
	display: flex;
	justify-content: space-between;
	padding: 6px 2px;
	border-bottom: 1px solid var(--line);
}
.desk-list .row:last-child {
	border-bottom: 0;
}
.desk-list .row span:last-child {
	color: var(--muted);
}
/* which part of the screen shows at which step */
.desk [class*="only"],
.desk .from2,
.desk .from3 {
	transition:
		opacity 0.45s,
		transform 0.45s;
}
[data-step] .desk .only2,
[data-step] .desk .only3,
[data-step] .desk .only4,
[data-step="1"] .desk .from2,
[data-step="1"] .desk .from3,
[data-step="2"] .desk .from3 {
	opacity: 0;
	transform: translateY(8px);
}
[data-step="2"] .desk .only2,
[data-step="3"] .desk .only3,
[data-step="4"] .desk .only4 {
	opacity: 1;
	transform: none;
}
/* gallery of large cards that scrolls sideways */
.h-gal-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}
.gcard {
	--a: var(--primary);
	position: relative;
	border-radius: 28px;
	overflow: hidden;
	background: linear-gradient(170deg, color-mix(in srgb, var(--a) 12%, #fff), #fff 70%);
	box-shadow: 0 2px 8px rgb(0 0 0 / 0.04);
	padding: 30px 28px 0;
	transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gcard:hover {
	transform: scale(1.015);
}
.gcard .k {
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--a);
}
.gcard h3 {
	margin: 6px 0 10px;
	font-size: 1.75rem;
	line-height: 1.1;
	letter-spacing: -0.03em;
}
.gcard p {
	margin: 0;
	color: var(--ink-2);
}
.gcard .vis {
	position: absolute;
	left: 28px;
	right: 28px;
	bottom: -40px;
}
.gcard .vis .wf-phone {
	width: 62%;
	margin: 0 auto;
}
.gcard .plus {
	position: absolute;
	right: 18px;
	bottom: 18px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--ink);
	color: #fff;
}
.idcard {
	width: 88%;
	margin: 0 auto 70px;
	aspect-ratio: 85.6 / 54;
	border-radius: 14px;
	background: linear-gradient(135deg, #fff7ed, #fde68a);
	border: 1px solid #fcd34d;
	box-shadow: 0 20px 40px -18px rgb(0 0 0 / 0.35);
	display: grid;
	grid-template-columns: 30% 1fr;
	gap: 10px;
	padding: 12px;
	transform: rotate(-4deg);
}
.idcard .ph {
	border-radius: 8px;
	background: linear-gradient(160deg, #c7d2fe, #818cf8);
}
.idcard b {
	display: block;
	font-size: 0.85rem;
}
.idcard span {
	font-size: 0.72rem;
	color: var(--ink-2);
}
.idcard .bc {
	height: 26px;
	margin-top: 8px;
	background: repeating-linear-gradient(
		90deg,
		#111 0 2px,
		transparent 2px 4px,
		#111 4px 5px,
		transparent 5px 8px
	);
}
/* dark section that zooms */
.h-dark {
	background: #000;
	color: #f5f5f7;
	overflow: hidden;
}
.h-dark .h-wrap {
	text-align: center;
}
.h-dark .big-ico {
	display: inline-grid;
	place-items: center;
	width: 140px;
	height: 140px;
	border-radius: 40px;
	background: linear-gradient(140deg, #009874, #006edc);
	box-shadow: 0 30px 80px -10px rgb(0 152 116 / 0.55);
	margin-bottom: 36px;
}
.h-dark .big-ico .i {
	width: 72px;
	height: 72px;
	color: #fff;
	stroke-width: 1.6;
}
.anim .h-dark .big-ico {
	transform: scale(calc(0.5 + var(--p) * 0.9)) rotate(calc((0.6 - var(--p)) * 30deg));
}
.h-dark .h-title {
	background: linear-gradient(180deg, #fff, #9ca3af);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.h-dark .h-lead {
	margin: 0 auto;
	color: #a1a1a6;
}
.facts3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 40px;
	text-align: left;
}
.facts3 div {
	padding: 24px;
	border-radius: 22px;
	background: #1c1c1e;
}
.facts3 b {
	display: block;
	font-size: 1.15rem;
	margin: 10px 0 6px;
	color: #fff;
}
.facts3 span {
	color: #a1a1a6;
}
.facts3 .i {
	width: 28px;
	height: 28px;
	color: #34d399;
}
@media (max-width: 760px) {
	.facts3 {
		grid-template-columns: 1fr;
	}
}
/* why: a grid of reasons */
.why {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 34px;
}
.why div {
	padding: 28px;
	border-radius: 24px;
	background: #fff;
}
.h-sec:not(.alt) .why div {
	background: #f5f5f7;
}
.why .i {
	width: 34px;
	height: 34px;
	color: var(--a, var(--primary));
}
.why b {
	display: block;
	margin: 14px 0 6px;
	font-size: 1.2rem;
	letter-spacing: -0.01em;
}
.why span {
	color: var(--ink-2);
}
@media (max-width: 860px) {
	.why {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 520px) {
	.why {
		grid-template-columns: 1fr;
	}
}
/* install in four steps */
.inst {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 34px 0 30px;
}
.inst div {
	position: relative;
	padding: 26px 22px;
	border-radius: 24px;
	background: #fff;
}
.inst .num {
	font-size: 3.4rem;
	font-weight: 850;
	line-height: 1;
	letter-spacing: -0.05em;
	background: linear-gradient(180deg, var(--a), color-mix(in srgb, var(--a) 30%, #fff));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.inst b {
	display: block;
	margin: 12px 0 6px;
	font-size: 1.1rem;
}
.inst span {
	color: var(--ink-2);
	font-size: 0.95rem;
}
.inst small {
	display: flex;
	gap: 4px;
	align-items: center;
	margin-top: 10px;
	color: var(--muted);
	font-weight: 650;
}
@media (max-width: 860px) {
	.inst {
		grid-template-columns: 1fr 1fr;
	}
}
/* final call */
.final {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	margin: 0 16px 40px;
	border-radius: 36px;
	padding: clamp(56px, 9vw, 110px) 20px;
	text-align: center;
	color: #fff;
	background: #0b1d3a;
}
.final::before {
	content: "";
	position: absolute;
	inset: -50%;
	z-index: -1;
	background: conic-gradient(
		from var(--hue),
		#006edc,
		#4c66d3,
		#a754b9,
		#e8590c,
		#009874,
		#006edc
	);
	filter: blur(90px);
	opacity: 0.6;
	animation: spin 16s linear infinite;
}
@keyframes spin {
	to {
		--hue: 360deg;
	}
}
/* on a touch screen the glow stays still, like the other effects */
@media (hover: none) and (pointer: coarse) {
	.final::before {
		animation: none;
	}
}
.final .h-title {
	color: #fff;
}
.final p {
	max-width: 36rem;
	margin: 0 auto 28px;
	font-size: 1.2rem;
	opacity: 0.9;
}
.final .pill-line {
	border-color: rgb(255 255 255 / 0.6);
	color: #fff;
}
.final .pill-line:hover {
	background: rgb(255 255 255 / 0.12);
}
.h-foot {
	background: #f5f5f7;
	padding: 36px 16px 80px;
	font-size: 0.85rem;
	color: var(--muted);
}
.h-foot .h-wrap {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 24px;
}
.h-foot b {
	display: block;
	color: var(--ink);
	margin-bottom: 8px;
}
.h-foot a {
	display: block;
	color: var(--ink-2);
	text-decoration: none;
	padding: 3px 0;
}
.h-foot a:hover {
	color: var(--primary);
	text-decoration: underline;
}
.h-beta {
	max-width: 1100px;
	margin: 28px auto 0;
	padding-top: 16px;
	border-top: 1px solid #e3e3e8;
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.8rem;
}
.h-beta .i {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	color: var(--primary);
}
.h-beta b {
	display: inline;
	margin: 0;
}
.h-beta a {
	display: inline;
	padding: 0;
	color: var(--primary);
}
@media (max-width: 760px) {
	.h-foot .h-wrap {
		grid-template-columns: 1fr 1fr;
	}
}
/* fade-up on entering the window */
.anim .reveal {
	opacity: 0;
	transform: translateY(40px);
	transition:
		opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
		transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.anim .reveal.in {
	opacity: 1;
	transform: none;
}
.gcard .spines-vis {
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: flex-end;
	bottom: 0;
}
.gcard .spines-vis .band {
	font-size: 0.8rem;
}
/* the BiblioViva logo, large, with the motto under it */
.h-logo {
	display: block;
	width: clamp(240px, 30vw, 380px);
	height: auto;
	margin: 0 auto 4px;
}
.h-hero h1 {
	font-size: clamp(2.2rem, 5.6vw, 4.4rem);
}
/* features: a grid of cards that rise from below */
.ggrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 40px;
}
.ggrid .gcard {
	width: auto;
	height: 500px;
}
.ggrid .gcard.wide {
	grid-column: span 2;
}
.ggrid .gcard.wide .vis {
	left: 18%;
	right: 18%;
}
.anim .reveal[style*="--d"],
.anim .reveal[data-d] {
	transition-delay: calc(var(--d, 0) * 120ms);
}
@media (max-width: 960px) {
	.ggrid {
		grid-template-columns: 1fr 1fr;
	}
	.ggrid .gcard.wide {
		grid-column: span 2;
	}
}
@media (max-width: 640px) {
	.ggrid {
		grid-template-columns: 1fr;
	}
	.ggrid .gcard.wide {
		grid-column: auto;
	}
	.ggrid .gcard.wide .vis {
		left: 28px;
		right: 28px;
	}
}
/* the hero without devices: a plain, centred opening */
.h-hero-in {
	padding-bottom: clamp(34px, 5.6vw, 67px);
}
/* spines with their spine bands (the labels card) */
.spine {
	width: var(--w, 46px);
	height: var(--h, 170px);
	border-radius: 6px 6px 3px 3px;
	background:
		linear-gradient(
			90deg,
			rgb(0 0 0 / 0.12),
			transparent 18%,
			transparent 82%,
			rgb(0 0 0 / 0.14)
		),
		var(--bc);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding: 8px 4px;
	box-shadow: 0 6px 12px -6px rgb(15 23 42 / 0.4);
	transition: transform 0.25s;
}
.spine:hover {
	transform: translateY(-14px);
}
.spine .band {
	width: 100%;
	background: #fff;
	border-radius: 4px;
	padding: 6px 2px;
	text-align: center;
	font: 800 0.8rem/1.15 var(--font);
	color: #111;
}
.spine .band .i {
	display: block;
	margin: 0 auto 3px;
	width: 16px;
	height: 16px;
	color: var(--bc);
}
.ggrid .gcard .vis .wf-phone {
	width: 46%;
}
.ggrid .gcard .vis {
	bottom: -70px;
}
.ggrid .gcard .spines-vis {
	bottom: 0;
}
.h-statement {
	padding-top: clamp(45px, 7vw, 84px);
}
.h-hero .sub {
	max-width: 46rem;
}
.h-hero .sub strong {
	display: inline-block;
	margin-top: 10px;
	color: var(--ink);
}
/* the barcode scanner is all it takes */
.scanner {
	display: flex;
	gap: 20px;
	align-items: center;
	max-width: 1000px;
	margin: 48px auto 0;
	padding: 24px 28px;
	border-radius: 24px;
	background: color-mix(in srgb, var(--c-circ) 9%, #fff);
	border: 1px solid color-mix(in srgb, var(--c-circ) 25%, #fff);
}
.scanner .ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 20px;
	background: var(--c-circ);
	color: #fff;
}
.scanner .ico .i {
	width: 40px;
	height: 40px;
}
.scanner b {
	display: block;
	font-size: clamp(1.3rem, 2.4vw, 1.8rem);
	letter-spacing: -0.02em;
	margin-bottom: 4px;
}
.scanner span {
	font-size: 1.1rem;
	color: var(--ink-2);
}
@media (max-width: 600px) {
	.scanner {
		flex-direction: column;
		align-items: flex-start;
	}
}
/* tighter rhythm: the desk steps sit close together, beside the screen */
.desk-steps {
	align-self: center;
}
.desk-steps .step {
	padding: 12px 0;
}
.step .n {
	margin-bottom: 8px;
}
.scanner {
	margin-top: 32px;
}
.ggrid {
	margin-top: 28px;
}
.h-title {
	margin-bottom: 12px;
}
/* the help icon of the desk screen lights up at the third step */
.desk-help {
	display: inline-grid;
	place-items: center;
	color: var(--muted);
	border-radius: 50%;
	transition:
		color 0.3s,
		box-shadow 0.3s,
		background 0.3s;
}
.desk-help .i {
	width: 1.05em;
	height: 1.05em;
}
[data-step="4"] .desk-help {
	color: #fff;
	background: var(--c-circ);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-circ) 25%, transparent);
}
/* features, area by area */
.fgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 30px;
}
.farea {
	padding: 24px 26px;
	border-radius: 24px;
	background: #fff;
	border-top: 4px solid var(--a);
}
.farea h3 {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0 0 12px;
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}
.farea h3 .i {
	width: 26px;
	height: 26px;
	color: var(--a);
}
.farea ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.farea li {
	position: relative;
	padding: 5px 0 5px 20px;
	color: var(--ink-2);
	border-top: 1px solid var(--line);
}
.farea li:first-child {
	border-top: 0;
}
.farea li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.95em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--a);
}
@media (max-width: 960px) {
	.fgrid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 600px) {
	.fgrid {
		grid-template-columns: 1fr;
	}
}
/* feature areas drawn like the app's top bar: a tinted band, the icon on a filled square */
.farea {
	padding: 0;
	overflow: hidden;
	border-top: 0;
}
.farea h3 {
	gap: 12px;
	margin: 0;
	padding: 14px 20px;
	background: color-mix(in srgb, var(--a) 13%, #fff);
	border-bottom: 3px solid var(--a);
	font-size: 1.3rem;
	font-weight: 750;
}
.farea h3 .ico {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--a);
}
.farea h3 .ico .i {
	width: 20px;
	height: 20px;
	color: #fff;
	stroke-width: 2;
}
.farea ul {
	padding: 12px 22px 18px;
}
/* the desk steps: a little more air between them */
.js .desk-steps .step {
	min-height: 38vh;
}
.desk-steps .step {
	padding: 18px 0;
}
@media (max-width: 860px) {
	.js .desk-steps .step {
		min-height: 32vh;
	}
}
/* a more visible rise: further, smaller, slightly blurred at the start */
.anim .reveal {
	opacity: 0;
	transform: translateY(90px) scale(0.92);
	filter: blur(2px);
	transition:
		opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
		transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
		filter 0.8s ease-out;
}
.anim .reveal.in {
	opacity: 1;
	transform: none;
	filter: none;
}
.anim .reveal[style*="--d"],
.anim .reveal[data-d] {
	transition-delay: calc(var(--d, 0) * 150ms);
}
/* the patron's count changes with the step: both badges share one place */
.badge-swap {
	display: grid;
	justify-items: start;
}
.badge-swap > .badge {
	grid-area: 1 / 1;
}
.desk .badge-swap .badge.from3 {
	transition:
		opacity 0.45s,
		transform 0.45s;
}
/* the desk steps: a little closer again */
.js .desk-steps .step {
	min-height: 33vh;
}
.desk-steps .step {
	padding: 14px 0;
}
@media (max-width: 860px) {
	.js .desk-steps .step {
		min-height: 28vh;
	}
}
