/*
 * Fanboom -- the shapes belonging to this case study only.
 *
 * Shared pieces live in assets/css/global/case-system.css. Each rule here
 * resolves the Tailwind classes on the matching element in the export's
 * src/routes/index.tsx rather than reinterpreting them. Colours come from the
 * token layer. Breakpoints match the export's: sm 640px, lg 1024px.
 *
 * The export is Tailwind 4, where an explicit leading-* outranks the
 * line-height a text-* size brings, so a set leading holds at every step.
 */

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

/* py-12 lg:py-20 */
.fbm-hero {
	background: var(--rv-white);
	padding-block: 3rem;
}

@media (min-width: 1024px) {
	.fbm-hero { padding-block: 5rem; }
}

.fbm-browse { gap: 1rem; }

/* The size, leading and tracking are the shared .cs-title. mt-8 lg:mt-10 */
.fbm-title {
	margin: 2rem 0 0;
	max-width: 64rem;
	font-weight: 800;
	color: var(--rv-black);
}

@media (min-width: 1024px) {
	.fbm-title {
		margin-top: 2.5rem;
		margin-left: -0.25rem;
	}
}

.fbm-title-mark {
	background: var(--rv-green);
	padding-inline: 1rem;
	color: var(--rv-black);
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/* mt-10 max-w-[46rem] 1.0625rem leading-relaxed lg:1.15rem */
.fbm-lede {
	margin: 2.5rem 0 0;
	max-width: 46rem;
	font-size: 1.0625rem;
	line-height: 1.625;
	color: var(--rv-case-muted);
}

@media (min-width: 1024px) {
	.fbm-lede { font-size: 1.15rem; }
}

/* mt-8, w-16 green + w-8 at 20% */
.fbm-progress {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 2rem;
}

.fbm-progress-on,
.fbm-progress-off { height: 0.375rem; }

.fbm-progress-on { width: 4rem; background: var(--rv-green); }
.fbm-progress-off { width: 2rem; background: rgb(var(--rv-black-rgb) / 0.2); }

/* --------------------------------------------------------------- overview */

/* grid gap-10 lg:grid-cols-[17rem_1fr] lg:gap-16 */
.fbm-overview {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 1024px) {
	.fbm-overview {
		grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
		gap: 4rem;
	}
}

.fbm-aside { min-width: 0; }
.fbm-aside > * + * { margin-top: 2.5rem; }

/* mt-5 space-y-3 */
.fbm-services {
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}

.fbm-services > li {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	border-top: 1px solid rgb(var(--rv-black-rgb) / 0.15);
	padding-top: 0.75rem;
	font-weight: 500;
	color: var(--rv-black);
}

.fbm-services > li + li { margin-top: 0.75rem; }

/* Stands in for the export's em dash glyph: one em wide, lifted from the
   baseline to where the glyph's stroke sat. */
.fbm-services-dash {
	display: inline-block;
	flex: none;
	width: 1em;
	height: 1px;
	background: var(--rv-green);
	transform: translateY(-0.33em);
}

.fbm-overview-body { min-width: 0; }
.fbm-overview-body > * + * { margin-top: 2rem; }

/* max-w-[46rem] text-xl leading-relaxed font-medium lg:text-2xl */
.fbm-overview-lead {
	margin: 0;
	max-width: 46rem;
	font-size: 1.25rem;
	line-height: 1.625;
	font-weight: 500;
	color: var(--rv-black);
}

@media (min-width: 1024px) {
	.fbm-overview-lead { font-size: 1.5rem; }
}

/* border-l-2 pl-6 lg:pl-10, 1.0625rem lg:1.15rem leading-relaxed */
.fbm-overview-pull {
	margin: 0;
	max-width: 46rem;
	border-left: 2px solid var(--rv-green);
	padding-left: 1.5rem;
	font-size: 1.0625rem;
	line-height: 1.625;
	color: var(--rv-case-muted);
}

@media (min-width: 1024px) {
	.fbm-overview-pull {
		padding-left: 2.5rem;
		font-size: 1.15rem;
	}
}

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

.fbm-screens-rule {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.fbm-screens-kicker {
	font-family: var(--rv-font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--rv-green);
}

.fbm-screens-line {
	height: 1px;
	flex: 1;
	background: rgb(var(--rv-white-rgb) / 0.15);
}

/* mt-12 grid gap-10 lg:mt-16 lg:grid-cols-2 lg:gap-12 */
.fbm-screens {
	display: grid;
	gap: 2.5rem;
	margin-top: 3rem;
}

@media (min-width: 1024px) {
	.fbm-screens {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 3rem;
		margin-top: 4rem;
	}
}

/* -------------------------------------------------------------------- cta */

/* py-20 lg:py-36 */
.fbm-cta {
	position: relative;
	overflow: hidden;
	padding-block: 5rem;
}

@media (min-width: 1024px) {
	.fbm-cta { padding-block: 9rem; }
}

.fbm-cta-grid {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.07;
	background-image: repeating-linear-gradient(to right, var(--rv-white) 0 1px, transparent 1px 8.5rem);
}

/* h-40 lg:h-56 */
.fbm-cta-curve {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 10rem;
	width: 100%;
	pointer-events: none;
}

@media (min-width: 1024px) {
	.fbm-cta-curve { height: 14rem; }
}

.fbm-cta-inner { position: relative; }

.fbm-cta-row { gap: 1rem; }

.fbm-cta-tick { width: 2.5rem; }

/* The size, leading and tracking are the shared .cs-cta-h. 70rem rather than
   the export's max-w-4xl, as on Density: at the shared size each sentence
   needs about 69rem to stay on one line. */
.fbm-cta-h {
	margin: 2rem 0 0;
	max-width: 70rem;
	font-weight: 800;
	color: var(--rv-white);
}

.fbm-cta-accent { color: var(--rv-green); }

/* mt-8 max-w-xl 1.0625rem leading-relaxed text-white/70 lg:1.15rem */
.fbm-cta-lede {
	margin: 2rem 0 0;
	max-width: 36rem;
	font-size: 1.0625rem;
	line-height: 1.625;
	color: rgb(var(--rv-white-rgb) / 0.7);
}

@media (min-width: 1024px) {
	.fbm-cta-lede { font-size: 1.15rem; }
}

/* mt-12 flex-wrap items-center gap-6 sm:gap-10 */
.fbm-cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem;
	margin-top: 3rem;
}

@media (min-width: 640px) {
	.fbm-cta-actions { gap: 2.5rem; }
}

/* inline-flex min-h-[3.5rem] w-full justify-center gap-4 px-8 text-base font-bold sm:w-auto */
.fbm-cta-btn {
	display: inline-flex;
	min-height: 3.5rem;
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding-inline: 2rem;
	font-size: 1rem;
	font-weight: 700;
}

@media (min-width: 640px) {
	.fbm-cta-btn { width: auto; }
}

.fbm-cta-link {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	border-bottom: 1px solid rgb(var(--rv-white-rgb) / 0.25);
	padding-bottom: 0.75rem;
	text-decoration: none;
	transition: color 0.15s ease;
}

.cs-tone-ink .fbm-cta-link { color: var(--rv-white); }

.cs-tone-ink .fbm-cta-link:hover,
.cs-tone-ink .fbm-cta-link:focus-visible { color: var(--rv-green); }

/* ------------------------------------------------------------------- a11y */

@media (prefers-reduced-motion: reduce) {
	.fbm-cta-btn,
	.fbm-cta-link { transition: none; }
}
