/* Split and showcase sections. Values from kit3.js R.split (final + split1) and
   R.showcase (final + show1). Desktop layout from 1024px (1200 content), stacked
   phone layout below (390 frames), tablets stack with desktop type sizes. */

/* ================================================================ Shared */
.ss-media {
	position: relative; overflow: hidden; height: 100%;
	border-radius: 20px; background: var(--c-lav-soft); box-shadow: var(--sh-big);
}
.ss-media > img { width: 100%; height: 100%; object-fit: cover; }
.ss-media--ph { box-shadow: none; }
.ss-pattern { width: 100%; height: 100%; min-height: 0; border-radius: inherit; }

/* Check row (kit item()): 16x24 tick box, 12 gap, 16/24 (15/24 phone) at 90% */
.ss-checks { display: flex; flex-direction: column; }
.ss-check { display: flex; gap: 12px; font-size: 15px; line-height: 24px; color: rgba(10, 13, 49, .9); }
.ss-check__tick { display: grid; place-items: center; flex: 0 0 16px; height: 24px; color: var(--c-blue); }
.ss-check__tick .ico { width: 14px; height: 11px; stroke-width: 1.8; }
.ss-check__t { flex: 1; min-width: 0; }
@media (min-width: 768px) { .ss-check { font-size: 16px; } }

/* Image settle (motion spec 6.1) and check entrance (5.3: list stagger, icon pop) */
html.motion-ok [data-reveal] .ss-media > img { transition: transform var(--dur-settle) var(--ease-out-expo); }
html.motion-ok [data-reveal]:not(.is-in) .ss-media > img { transform: scale(1.06); }
html.motion-ok [data-reveal] .ss-check {
	transition: opacity 600ms var(--ease-out-quart), transform 600ms var(--ease-out-quart);
	transition-delay: calc(var(--extra, 0ms) + 200ms + var(--i, 0) * var(--stagger-list));
}
html.motion-ok [data-reveal] .ss-check__tick .ico {
	transition: transform 500ms var(--ease-spring-ui);
	transition-delay: calc(var(--extra, 0ms) + 260ms + var(--i, 0) * var(--stagger-list));
}
html.motion-ok [data-reveal]:not(.is-in) .ss-check { opacity: 0; transform: translateY(var(--dist-small)); }
html.motion-ok [data-reveal]:not(.is-in) .ss-check__tick .ico { transform: scale(.6); }
html.motion-ok .is-instant .ss-check, html.motion-ok .is-instant .ss-check__tick .ico, html.motion-ok .is-instant .ss-media > img { transition: none; }

/* ================================================================ Split */
.split { display: flex; flex-direction: column; gap: 22px; }
.split__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.split__h { width: 100%; }
.split__body { font-size: 16px; line-height: 26px; color: var(--ink-72); }
.split__checks { gap: 14px; align-self: stretch; }
.split__btns { align-self: stretch; }
.split__visual { position: relative; width: 100%; }
/* Phones: image splits show the visual first; panel splits keep it after the copy. */
.split--img .split__visual { order: -1; }
.split__media { aspect-ratio: 350 / 250; }
.split--image .split__media { aspect-ratio: 350 / 240; }

/* Badge (kit d.badge): card r16 with the big shadow, bottom-left of the image */
.split__badge {
	position: absolute; left: 20px; bottom: 20px; z-index: 2;
	display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px;
	background: var(--c-mist); box-shadow: var(--ring-card), var(--sh-big);
}
.split__badge-v { font: var(--fw-medium) 18px/26px var(--f-head); letter-spacing: -.5px; }
.split__badge-l { font-size: 12px; line-height: 18px; color: var(--ink-62); }
html.motion-ok .split__media .split__badge { transition: opacity 600ms var(--ease-out-quart) 400ms, transform 600ms var(--ease-out-quart) 400ms; }
html.motion-ok .split__media:not(.is-in) .split__badge { opacity: 0; transform: translateY(12px); }

/* Facts panel (kit factCard) */
.split__panel { padding: 6px 20px; border-radius: 20px; }
.split__rows { margin: 0; }
.split__row { display: flex; flex-direction: column; gap: 2px; padding: 13px 0; }
.split__row + .split__row { border-top: 1px solid var(--ink-10); }
.split__row-l { font: var(--fw-medium) 11px/16px var(--f-body); letter-spacing: .7px; text-transform: uppercase; color: var(--ink-55); }
.split__row-v { margin: 0; font: var(--fw-medium) 15px/22px var(--f-body); }

/* Quote panel (kit split1 quote) */
.split__quote { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 24px 22px; border-radius: 20px; }
.split__stars { display: flex; gap: 3px; color: var(--c-blue); }
.split__stars svg { width: 14px; height: 14px; }
.split__quote-t { margin: 0; font: var(--fw-medium) 22px/30px var(--f-head); letter-spacing: -.4px; }
.split__quote-by { font-size: 14px; line-height: 22px; color: var(--ink-62); }

@media (min-width: 768px) {
	.split { gap: 32px; }
	.split__visual { max-width: 720px; }
	.split__btns .btn { width: auto; }
	.split__media { aspect-ratio: 628 / 460; }
	.split--image .split__media { aspect-ratio: 628 / 420; }
	.split__badge { left: 32px; bottom: 32px; padding: 16px 20px; }
	.split__badge-v { font-size: 26px; line-height: 32px; }
	.split__badge-v.is-long { font-size: 20px; }
	.split__badge-l { font-size: 13px; }
}
@media (min-width: 1024px) {
	.split {
		display: grid; grid-template-columns: minmax(0, 500fr) minmax(0, 628fr);
		column-gap: 72px; align-items: center;
	}
	.split--flip { grid-template-columns: minmax(0, 628fr) minmax(0, 500fr); }
	.split--img .split__visual { order: 0; }
	.split--flip .split__visual { order: -1; }
	.split__visual { max-width: none; }
	.split__copy { gap: 18px; }
	.split__checks { gap: 18px; }
	.ss-media { border-radius: 28px; }
	.split__panel { padding: 10px 32px; border-radius: 24px; }
	.split__row { flex-direction: row; gap: 24px; padding: 18px 0; }
	.split__row-l { flex: 0 0 220px; font: var(--fw-regular) 15px/24px var(--f-body); letter-spacing: 0; text-transform: none; color: var(--ink-60); }
	.split__row-v { flex: 1; font-size: 16px; line-height: 24px; }
	.split__quote { padding: 40px; border-radius: 24px; }
	.split__quote-t { font-size: 28px; line-height: 37px; }
}

/* ================================================================ Showcase */
/* Phones and tablets (kit show1 M): image 350x240 r22, then the caption card, gap 12. */
.showcase { display: flex; flex-direction: column; gap: 12px; }
.showcase__visual { width: 100%; aspect-ratio: 350 / 240; }
.showcase .ss-media { border-radius: 22px; }
.showcase__cap {
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
	padding: 22px 20px; border-radius: 20px;
	background: var(--c-mist); box-shadow: var(--ring-card), var(--sh-big);
}
.showcase__h { width: 100%; font: var(--fw-medium) 24px/27px var(--f-head); letter-spacing: -.4px; text-wrap: balance; }
.showcase__text { font-size: 15px; line-height: 23px; color: var(--ink-72); }
/* Points as lavender pills (kit pill lav, 12px, 7/12 padding, wrap gap 8) */
.showcase__points { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.showcase__points .ss-check {
	padding: 7px 12px; border-radius: var(--r-pill); background: var(--c-lav-soft);
	font: var(--fw-medium) 12px/17px var(--f-body); color: var(--c-blue);
}
.showcase__points .ss-check__tick { display: none; }
.showcase__note { align-self: stretch; }

@media (min-width: 768px) {
	.showcase__visual { aspect-ratio: 1200 / 560; }
	.showcase .ss-media { border-radius: 28px; }
	.showcase__cap { gap: 12px; padding: 32px; border-radius: 22px; }
	.showcase__h { font-size: 34px; line-height: 39px; letter-spacing: -.9px; }
	.showcase__text { font-size: 16px; line-height: 25px; }
	.showcase__points .ss-check { font-size: 13px; line-height: 18px; }
}

@media (min-width: 1024px) {
	/* Desktop caption card (final kit cap): pad 36, r24, gap 14, H 34, text 16/25, check rows */
	.showcase--card .showcase__cap, .showcase--stack .showcase__cap { gap: 14px; padding: 36px; border-radius: 24px; }
	.showcase__points { flex-direction: column; flex-wrap: nowrap; gap: 8px; padding-top: 6px; align-self: stretch; }
	.showcase__points .ss-check { padding: 0; border-radius: 0; background: none; font: var(--fw-regular) 16px/24px var(--f-body); color: rgba(10, 13, 49, .9); }
	.showcase__points .ss-check__tick { display: grid; }

	/* card: stage 1200, image 800x520, caption 440 overlapping by 40, both centered */
	.showcase--card { display: grid; grid-template-columns: minmax(0, 760fr) minmax(0, 40fr) minmax(0, 400fr); align-items: center; gap: 0; }
	.showcase--card .showcase__visual { grid-area: 1 / 1 / 2 / 3; aspect-ratio: 800 / 520; }
	.showcase--card .showcase__cap { grid-area: 1 / 2 / 2 / 4; position: relative; z-index: 2; margin: 20px 0; }
	.showcase--card.showcase--flip { grid-template-columns: minmax(0, 400fr) minmax(0, 40fr) minmax(0, 760fr); }
	.showcase--card.showcase--flip .showcase__visual { grid-area: 1 / 2 / 2 / 4; }
	.showcase--card.showcase--flip .showcase__cap { grid-area: 1 / 1 / 2 / 3; }

	/* side: framed image 700x470 (imgC, 14px frame) beside the copy, gap 64 */
	.showcase--side { display: grid; grid-template-columns: minmax(0, 700fr) minmax(0, 436fr); column-gap: 64px; align-items: center; }
	.showcase--side.showcase--flip { grid-template-columns: minmax(0, 436fr) minmax(0, 700fr); }
	.showcase--side.showcase--flip .showcase__visual { order: 2; }
	.showcase--side .showcase__visual {
		aspect-ratio: 700 / 470; padding: 14px; border-radius: 28px;
		background: var(--c-mist); box-shadow: var(--ring-card), var(--sh-big);
	}
	.showcase--side .ss-media { border-radius: 14px; box-shadow: none; }
	.showcase--side .showcase__cap { gap: 16px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
	.showcase--side .showcase__h { font-size: 40px; line-height: 46px; letter-spacing: -.9px; }
	.showcase--side .showcase__text { font-size: 17px; line-height: 27px; }
	.showcase--side .showcase__points { gap: 16px; padding-top: 0; }

	/* overlay: image 1200x560 r28, Night gradient (92% to 0 at 66%), white copy 470 at x 56 */
	.showcase--overlay {
		position: relative; display: grid; align-items: center; gap: 0;
		min-height: 560px; aspect-ratio: 1200 / 560;
		border-radius: 28px; overflow: hidden; box-shadow: var(--sh-big); isolation: isolate;
	}
	.showcase--overlay .showcase__visual { position: absolute; inset: 0; aspect-ratio: auto; z-index: -1; }
	.showcase--overlay .ss-media { border-radius: 0; box-shadow: none; }
	.showcase--overlay .showcase__visual::after {
		content: ""; position: absolute; inset: 0;
		background: linear-gradient(90deg, rgba(7, 10, 36, .92) 0%, rgba(7, 10, 36, 0) 66%);
	}
	.showcase--overlay .showcase__cap {
		width: 470px; max-width: calc(100% - 112px); margin: 40px 0 40px 56px; gap: 14px;
		padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--c-white);
	}
	.showcase--overlay .showcase__h { font-size: 40px; line-height: 46px; letter-spacing: -1px; }
	.showcase--overlay .showcase__text { font-size: 17px; line-height: 27px; color: rgba(255, 255, 255, .8); }
	.showcase--overlay .showcase__points { padding-top: 8px; }
	.showcase--overlay .showcase__points .ss-check { color: var(--c-white); }
	.showcase--overlay .ss-check__tick { color: var(--c-lavender); }
	.showcase--overlay .showcase__cap :focus-visible { outline-color: var(--c-white); }

	/* stack (overlay with a pending image, kit show1 desktop): image 1200x560, caption 460
	   at x 40, bottom-aligned to a 620 stage so it overlaps the image by 60+ */
	.showcase--stack { display: grid; grid-template-columns: 40fr 460fr 700fr; gap: 0; }
	.showcase--stack .showcase__visual { grid-area: 1 / 1 / 2 / 4; aspect-ratio: 1200 / 560; margin-bottom: 60px; }
	.showcase--stack .showcase__cap { grid-area: 1 / 2 / 2 / 3; align-self: end; position: relative; z-index: 2; gap: 12px; padding: 32px; border-radius: 22px; }
	.showcase--stack .showcase__points { flex-direction: row; flex-wrap: wrap; padding-top: 0; }
	.showcase--stack .showcase__points .ss-check { padding: 7px 12px; border-radius: var(--r-pill); background: var(--c-lav-soft); font: var(--fw-medium) 13px/18px var(--f-body); color: var(--c-blue); }
	.showcase--stack .showcase__points .ss-check__tick { display: none; }
}
