/*
 * CTA banner: centred copy above a dotted globe, which runs off the bottom
 * edge of the section and meets the footer. The globe is either animated
 * (graphic "globe", the dome at the end of this file) or a still image
 * (graphic "globe-image").
 */

.syb-cta-banner {
	padding-top: var(--section-y);
	overflow: hidden;
	background: var(--c-white);
}

.syb-cta-banner--none {
	padding-bottom: var(--section-y);
}

.syb-cta-banner__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}

.syb-cta-banner__text {
	max-width: 556px;
}

.syb-cta-banner__graphic {
	position: relative;
	left: 50%;
	display: block;
	width: 560px;
	max-width: none;
	margin-top: -4px;
	transform: translateX(-50%);
}

@media (min-width: 768px) {
	.syb-cta-banner__title {
		line-height: 38px;
	}

	.syb-cta-banner__buttons {
		gap: 21px;
		padding-top: 4px;
	}

	.syb-cta-banner__graphic {
		width: 875px;
		margin-top: -31px;
	}
}

/*
 * Graphic "Dotted globe, animated": the dotted dome drawn by assets/js/dome.js,
 * from the design file hero-dome.html. It covers the section behind the text.
 * The section is as tall as in that file (820px) from tablets up; on phones it
 * keeps 300px under the text, and the script moves the dome below the text.
 */

.syb-cta-banner--globe {
	padding-bottom: 300px;
}

.syb-dome {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	/* The section listens to the pointer; the dome only draws. */
	pointer-events: none;
}

.syb-dome__canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.syb-dome__labels {
	position: absolute;
	inset: 0;
}

/* A payment amount over a node; the script places it. */
.syb-dome__money {
	position: absolute;
	top: 0;
	left: 0;
	line-height: normal;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.35s ease;
	will-change: opacity, transform;
}

.syb-dome__money.is-visible {
	opacity: 1;
}

.syb-dome__pin {
	position: absolute;
	left: 50%;
	bottom: -12px;
	width: 7px;
	height: 7px;
	margin-left: -3.5px;
	border-radius: 50%;
	background: #5b6b8c;
	box-shadow: 0 0 0 4px rgba(91, 107, 140, 0.18), 0 0 12px 2px rgba(91, 107, 140, 0.45);
}

.syb-dome__bubble {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 3px 8px;
	border: 1px solid rgba(91, 107, 140, 0.35);
	border-radius: 8px;
	background: rgba(222, 228, 240, 0.95);
	box-shadow: 0 6px 20px rgba(40, 60, 110, 0.15);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-variant-numeric: tabular-nums;
}

.syb-dome__amount {
	color: #2b3960;
	font-size: 0.75rem;
	font-weight: 700;
}

/* Without JavaScript the still globe stands in. */
.syb-dome__still {
	position: absolute;
	bottom: 0;
	left: 50%;
	display: block;
	width: 560px;
	max-width: none;
	transform: translateX(-50%);
}

@media (min-width: 768px) {
	.syb-cta-banner--globe {
		min-height: 820px;
		padding-bottom: 0;
	}

	.syb-dome__still {
		width: 875px;
	}
}
