/* ==========================================================================
   ebg cta - spotlight: products teaser. Dark band (surface-anchor) with the
   hairline texture; centred head (dashed chip, heading with one accent
   phrase, one-line lead); one wide glass card per product: text on the start
   side (kicker, name, description, ticked points, pill button), a framed
   screenshot on the end side. Cards stack 24px apart and rise in as the list
   scrolls into view (.ebg-reveal-children). No single ebg source: built
   from the library's ebg primitives (chip, pill, glass panel of
   process/opc-methodology, dark band of the footer).
   ========================================================================== */

@layer components {

	.ebg-spt {
		--ebg-spt-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");

		position: relative;
		inline-size: 100%;
		margin-block: 0;
		padding-block: var(--section-py);
		background-color: var(--ebg-surface-anchor);
		color: var(--ebg-on-dark-2);

		& > .ebg-shell {
			position: relative; /* above the texture */
			margin-block: 0;
		}

		& :where(p, h1, h2, h3, ul) { margin: 0; }
	}

	.ebg-spt__head {
		display: flex;
		flex-direction: column;
		align-items: center;
		max-inline-size: 680px;
		margin-inline: auto;
		margin-block-end: 52px;
		text-align: center;

		& > * { margin-block: 0; }
	}

	.ebg-spt .ebg-spt__sub {
		margin-block-end: 20px;
		padding: 2px 10px;
		color: var(--ebg-on-dark-1);
	}

	.ebg-spt .ebg-spt__title {
		color: var(--ebg-on-dark-1);
		font-family: var(--font-display);
		font-size: 3rem;
		font-weight: 500;
		line-height: 1.125;

		& .ebg-mark { color: var(--ebg-accent-bright, var(--ebg-on-dark-1)); }
	}

	.ebg-spt .ebg-spt__lead {
		margin-block-start: 20px;
		font-size: var(--text-base);
		line-height: 1.5;
	}

	.ebg-spt__items {
		display: flex;
		flex-direction: column;
		gap: 24px;

		& > * { margin-block: 0; }
	}

	.ebg-spt .ebg-spt__item {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		gap: 60px;
		align-items: center;
		box-sizing: border-box;
		padding: 50px;
		border: 1px solid rgb(255 255 255 / 0.1);
		border-radius: 12px;
		background-color: rgb(255 255 255 / 0.04);
		transition: border-color 0.35s ease, box-shadow 0.35s ease;

		&:hover {
			border-color: color-mix(in oklab, var(--ebg-accent-bright, var(--ebg-accent)) 35%, transparent);
			box-shadow: 0 16px 36px rgb(0 0 0 / 0.3);
		}

		& > * { margin-block: 0; }
	}

	.ebg-spt__text {
		display: flex;
		flex-direction: column;
		align-items: flex-start;

		& > * { margin-block: 0; }
	}

	.ebg-spt .ebg-spt__kicker {
		margin-block-end: 12px;
		color: var(--ebg-accent-bright, var(--ebg-on-dark-1));
		font-size: 0.875rem;
		font-weight: 600;
		letter-spacing: 0.1em;
		text-transform: uppercase;
	}

	.ebg-spt .ebg-spt__name {
		margin-block-end: 16px;
		color: var(--ebg-on-dark-1);
		font-family: var(--font-display);
		font-size: 2.25rem;
		font-weight: 600;
		line-height: 1.2;

		& a {
			color: inherit;
			text-decoration: none;
			padding-block-end: 2px;
			background: linear-gradient(currentColor, currentColor) right bottom / 0 1px no-repeat;
			transition: background-size 0.3s ease;

			&:is(:hover, :focus-visible) {
				background-position: left bottom;
				background-size: 100% 1px;
			}
		}
	}

	.ebg-spt .ebg-spt__desc {
		font-size: var(--text-base);
		line-height: 1.6;
	}

	.ebg-spt .ebg-spt__points {
		display: flex;
		flex-direction: column;
		gap: 12px;
		margin-block: 24px 36px;
		padding: 0;
		list-style: none;

		/* Accent disc (::before) with a white tick on top (::after). */
		& li {
			position: relative;
			display: flex;
			gap: 12px;
			margin: 0;
			color: var(--ebg-on-dark);
			font-size: var(--text-base);
			line-height: 1.5;

			&::before {
				content: "";
				flex: none;
				inline-size: 20px;
				block-size: 20px;
				margin-block-start: 2px;
				border-radius: 50%;
				background-color: var(--ebg-accent);
			}

			&::after {
				content: "";
				position: absolute;
				inset-block-start: 7px;
				inset-inline-start: 5px;
				inline-size: 10px;
				block-size: 10px;
				background-color: var(--ebg-on-dark-1);
				mask: var(--ebg-spt-tick) center / contain no-repeat;
			}
		}
	}

	.ebg-spt .ebg-spt__img {
		margin: 0;
		overflow: hidden;
		border: 6px solid rgb(255 255 255 / 0.08);
		border-radius: 14px;

		& a {
			display: block;
			color: inherit;
		}

		& img {
			display: block;
			inline-size: 100%;
			block-size: auto;
			aspect-ratio: 16 / 9;
			max-block-size: 320px;
			object-fit: cover;
			object-position: left top;
			transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
		}
	}

	.ebg-spt .ebg-spt__item:hover .ebg-spt__img img {
		transform: scale(1.02);
	}

	@media (max-width: 1200px) {
		.ebg-spt .ebg-spt__item { gap: 40px; padding: 40px; }
		.ebg-spt .ebg-spt__name { font-size: 1.875rem; }
	}

	@media (max-width: 1024px) {
		.ebg-spt__head { margin-block-end: 35px; }
		.ebg-spt .ebg-spt__sub { margin-block-end: 15px; font-size: 0.8125rem; }
		.ebg-spt .ebg-spt__title { font-size: 2.5rem; }

		.ebg-spt .ebg-spt__item {
			grid-template-columns: minmax(0, 1fr);
			max-inline-size: 720px;
			margin-inline: auto;
		}
	}

	@media (max-width: 767px) {
		.ebg-spt .ebg-spt__title { font-size: 1.875rem; }
		.ebg-spt .ebg-spt__item { gap: 30px; padding: 30px 20px; }
		.ebg-spt .ebg-spt__name { font-size: 1.625rem; }
	}
}
