/*
 * Homepage "How it all works together" (section #how-it-works, page 5).
 * Layout, spacing, positions and typography are native Bricks settings;
 * this file holds only what Bricks can't express (layered glows, backdrop blur,
 * state selectors, pseudo-elements). The canvas is injected by js/rcs-how.js.
 */
#how-it-works { --phase-color: #65d8c4; }
#how-it-works .hw-accent { color: #7bbaff; }

/* Scene glow + injected canvas, feathered so streaks never hard-clip at the edges. */
#hw-scene {
	background:
		radial-gradient(ellipse 46% 52% at 50% 48%, rgba(40, 110, 220, .30), transparent 70%),
		radial-gradient(ellipse 30% 40% at 78% 30%, rgba(60, 190, 255, .12), transparent 70%),
		radial-gradient(ellipse 34% 40% at 18% 78%, rgba(255, 140, 90, .07), transparent 70%);
}
#hw-scene .hw-canvas {
	position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
	-webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
	mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
#hw-globe { pointer-events: none; }

/* Frosted glass logo panels. */
#how-it-works .hw-panel {
	background-image: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04) 55%);
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	backdrop-filter: blur(16px) saturate(150%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 32px rgba(0, 0, 0, .4);
}
#how-it-works .hw-panel img { position: relative; z-index: 1; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .45)); }
#how-it-works .hw-caption { text-shadow: 0 1px 8px #070d1a; }

/* Stage pill. */
#hw-state { white-space: nowrap; transition: color .4s; }
#hw-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.hw-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
	#hw-state { transition: none; }
}

/* Mobile: group labels and the stage pill span both grid columns (Basic Text has no grid-column control). */
@media (max-width: 767px) {
	#how-it-works .hw-span-all { grid-column: 1 / -1; }
}
