/*
 * عابرين — pages/home.css
 * Every homepage section (SPEC §4.5): hero with floating product card,
 * banner slider, banner marquee, categories marquee, devices bento,
 * product tabs/rows, why-us cards (swipe row on phones), today's-offer
 * slider, blog top picks, order steps sequential reveal, testimonials,
 * FAQ, about + collage, bundles, package comparison.
 * The shared Splide styles (pre-mount sizing, arrows, dots) live in
 * assets/css/sliders.css; only the offers slider tweaks stay here.
 * Mobile-first, logical properties only, tokens only (--stv-*).
 */

/* ===== Shared: anchors, headings ===== */
.stv-anchor { display: block; position: relative; top: calc(-1 * (var(--stv-header-height) + var(--stv-header-offset) + var(--stv-topbar-height, 0px) + var(--stv-space-4))); visibility: hidden; }
.stv-section > .stv-container > .stv-section-head { margin-block-end: var(--stv-space-6); }
.stv-section--gradient { background: var(--stv-gradient-dark); }

/*
 * Without a hero on top the main already pads for the floating header
 * (inc/setup.php adds stv-has-hero only when the hero renders first), so the
 * first section only keeps a compact gap: a banner sits just below the header.
 */
body:not(.stv-has-hero) .stv-home > .stv-section:first-child { padding-block-start: var(--stv-space-4); }

@media (min-width: 900px) {
	body:not(.stv-has-hero) .stv-home > .stv-section:first-child { padding-block-start: var(--stv-space-5); }
}

/* ===== 1. Hero ===== */
.stv-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100svh;
	padding-block: calc(var(--stv-header-height) + var(--stv-header-offset) + var(--stv-topbar-height, 0px) + var(--stv-space-6)) var(--stv-space-8);
	overflow: hidden;
	background: var(--stv-color-background);
	isolation: isolate;
}

/* A hero lower down the page (another section renders first) does not sit under the header */
body:not(.stv-has-hero) .stv-hero { padding-block-start: var(--stv-space-8); }

.stv-hero__media { position: absolute; inset: 0; z-index: -1; }
.stv-hero__picture,
.stv-hero__bg { display: block; width: 100%; height: 100%; }
.stv-hero__bg { object-fit: cover; object-position: center; }
.stv-hero__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(8, 8, 8, .55) 0%, rgba(8, 8, 8, .35) 40%, var(--stv-color-background) 100%),
		linear-gradient(to var(--stv-hero-fade-dir, right), rgba(8, 8, 8, .75) 0%, rgba(8, 8, 8, .2) 60%, transparent 100%);
}

[dir="rtl"] .stv-hero__overlay { --stv-hero-fade-dir: left; }
.stv-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--stv-space-7); align-items: center; }
.stv-hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--stv-space-4); max-width: 640px; }

.stv-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: var(--stv-space-2);
	padding: var(--stv-space-1) var(--stv-space-3) var(--stv-space-1) var(--stv-space-2);
	border: 1px solid var(--stv-color-primary-soft);
	border-radius: var(--stv-radius-pill);
	background: var(--stv-color-primary-soft);
	color: var(--stv-color-primary);
	font-size: var(--stv-font-size-sm);
	font-weight: var(--stv-weight-ui);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.stv-hero__badge-icon { display: inline-flex; font-size: 18px; }
.stv-hero__title { margin: 0; font-size: var(--stv-font-size-5xl); font-weight: var(--stv-weight-heading); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.stv-hero__subtitle { margin: 0; max-width: 560px; font-size: var(--stv-font-size-lg); line-height: var(--stv-lh-body); color: var(--stv-color-text-muted); }
.stv-hero__actions { display: flex; flex-direction: column; gap: var(--stv-space-3); width: 100%; margin-block-start: var(--stv-space-2); }
.stv-hero__actions .stv-btn { width: 100%; min-height: 52px; }
.stv-hero__card { display: flex; justify-content: center; }

.stv-hero-card {
	display: flex;
	flex-direction: column;
	gap: var(--stv-space-3);
	width: 100%;
	max-width: 420px;
	padding: var(--stv-space-4);
	border-color: var(--stv-color-border-strong);
	border-radius: var(--stv-radius-xl);
	background: color-mix(in srgb, var(--stv-color-surface) 90%, transparent);
	box-shadow: var(--stv-shadow-glow);
	color: var(--stv-color-text);
	text-decoration: none;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	animation: stv-hero-float 6s ease-in-out infinite;
}

.stv-hero-card__media { position: relative; display: block; aspect-ratio: 1; border-radius: var(--stv-radius-lg); overflow: hidden; background: var(--stv-color-surface-2); }
.stv-hero-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stv-hero-card__badge { position: absolute; top: var(--stv-space-3); inset-inline-end: var(--stv-space-3); }
.stv-hero-card__body { display: flex; flex-direction: column; gap: var(--stv-space-2); }
.stv-hero-card__title { margin: 0; font-size: var(--stv-font-size-lg); font-weight: var(--stv-weight-heading); line-height: 1.4; }
.stv-hero-card__line { display: flex; align-items: center; gap: var(--stv-space-2); margin: 0; font-size: var(--stv-font-size-sm); color: var(--stv-color-success); }
.stv-hero-card__line-icon { display: inline-flex; font-size: 18px; }
.stv-hero-card__price { display: flex; align-items: baseline; gap: var(--stv-space-2); font-size: var(--stv-font-size-xl); font-weight: var(--stv-weight-heading); color: var(--stv-color-price); }
.stv-hero-card__cta { display: inline-flex; align-items: center; gap: var(--stv-space-2); font-size: var(--stv-font-size-sm); font-weight: var(--stv-weight-ui); color: var(--stv-color-primary); }

@keyframes stv-hero-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@media (min-width: 600px) {
	.stv-hero__actions { flex-direction: row; width: auto; }
	.stv-hero__actions .stv-btn { width: auto; min-width: 180px; }
}

@media (min-width: 900px) {
	.stv-hero { min-height: 90vh; padding-block-end: var(--stv-space-9); }
	.stv-hero--has-card .stv-hero__inner { grid-template-columns: minmax(0, 1fr) 420px; gap: var(--stv-space-8); }
	.stv-hero__card { justify-content: flex-end; }
}

/* ===== 2. Banners ===== */
/* The banner's own 1208×560 shape on every width (never cropped on phones); 3:2 below 900px only when every banner has a phone image */
.stv-banners__frame { position: relative; aspect-ratio: 1208 / 560; border-radius: var(--stv-radius-xl); overflow: hidden; background: var(--stv-color-surface-2); }
.stv-banners__frame .stv-fader__track { height: 100%; border-radius: 0; }
.stv-banners__frame .stv-fader__slide { height: 100%; }
.stv-banners__link { display: block; width: 100%; height: 100%; }

/* The image always covers its frame, centred (beats the generic fader image rule on every width) */
.stv-banners__frame .stv-banners__picture,
.stv-banners__frame .stv-banners__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.stv-banners__frame .stv-fader__arrow { width: 44px; height: 44px; }
.stv-banners__frame .stv-fader__dots { position: absolute; bottom: var(--stv-space-3); inset-inline: 0; margin: 0; }
/* The pause button sits at the end of the dots row, centred on the 24px tray */
.stv-banners__frame .stv-fader__toggle { inset-block: auto var(--stv-space-2); inset-inline-end: var(--stv-space-3); }

@media (max-width: 899px) {
	.stv-banners__frame--phone-art { aspect-ratio: 3 / 2; }
}

/* Phones swipe the banners (dots stay); the arrows would cover the banner's edges */
@media (max-width: 599px) {
	.stv-banners__frame .stv-fader__arrow { display: none; }
	.stv-banners__frame .stv-fader__dots { bottom: var(--stv-space-2); }
	.stv-banners__frame .stv-fader__toggle { inset-block: auto var(--stv-space-1); inset-inline-end: var(--stv-space-2); }
}

/* ===== 3. Banner marquee ===== */
.stv-banner-marquee { padding-block: 0; }
.stv-banner-marquee__track { gap: var(--stv-space-4); padding-block: var(--stv-space-2); }
.stv-banner-marquee__item { display: block; width: 280px; height: 110px; border-radius: var(--stv-radius-lg); overflow: hidden; background: var(--stv-color-surface-2); border: 1px solid var(--stv-color-border); transition: border-color var(--stv-transition), transform var(--stv-transition); }
.stv-banner-marquee__img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
	.stv-banner-marquee__item { width: 360px; height: 140px; }
}

/* ===== 4. Categories marquee ===== */
.stv-categories__track { gap: var(--stv-space-4); padding-block: var(--stv-space-3); }

.stv-cat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 150px;
	height: 200px;
	padding: var(--stv-space-4);
	border-radius: var(--stv-radius-lg);
	overflow: hidden;
	background: var(--stv-color-surface-2);
	color: var(--stv-color-white);
	text-decoration: none;
	isolation: isolate;
	transition: box-shadow var(--stv-transition), transform var(--stv-transition);
}

.stv-cat-card__media { position: absolute; inset: 0; z-index: -1; display: block; }
.stv-cat-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8, 8, 8, .3) 60%, rgba(8, 8, 8, .9) 100%); }
.stv-cat-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease-out; }
.stv-cat-card__name { position: relative; font-size: var(--stv-font-size-lg); font-weight: var(--stv-weight-heading); line-height: 1.3; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.stv-cat-card::before { content: ""; position: absolute; inset-inline: var(--stv-space-4); bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--stv-item-color, var(--stv-color-primary)); }

@media (min-width: 900px) {
	.stv-cat-card { width: 200px; height: 260px; }
}

/* ===== 5. Devices bento ===== */
.stv-devices__grid { display: flex; flex-direction: column; gap: var(--stv-space-3); }
.stv-devices__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; grid-auto-flow: dense; gap: var(--stv-space-3); }

.stv-device {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: var(--stv-space-2);
	padding: var(--stv-space-4);
	border: 1px solid var(--stv-color-border);
	border-radius: var(--stv-radius-xl);
	overflow: hidden;
	background: var(--stv-color-surface-2);
	color: var(--stv-color-text);
	text-decoration: none;
	isolation: isolate;
	transition: transform var(--stv-transition), box-shadow var(--stv-transition), border-color var(--stv-transition);
}

.stv-device--custom { background: linear-gradient(135deg, var(--stv-tile-bg, var(--stv-color-surface-2)), var(--stv-tile-bg-end, var(--stv-tile-bg, var(--stv-color-surface-3)))); }
.stv-device--large { grid-column: span 2; }
.stv-device__glow { position: absolute; top: -40%; inset-inline-end: -20%; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: var(--stv-radius-pill); background: radial-gradient(circle, rgba(255, 255, 255, .18) 0%, transparent 70%); opacity: .8; transition: opacity var(--stv-transition), transform var(--stv-transition); }
.stv-device__logo { display: inline-flex; align-items: center; margin-block-end: auto; max-height: 40px; }
.stv-device__logo-img { display: block; width: auto; max-width: 120px; max-height: 40px; object-fit: contain; }
.stv-device__logo--icon { font-size: 32px; color: var(--stv-color-primary); }
.stv-device__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stv-device__title { font-size: var(--stv-font-size-lg); font-weight: var(--stv-weight-heading); line-height: 1.3; }
.stv-device__subtitle { font-size: var(--stv-font-size-xs); opacity: .8; }
.stv-device__arrow { position: absolute; top: var(--stv-space-4); inset-inline-end: var(--stv-space-4); display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: var(--stv-radius-pill); background: rgba(255, 255, 255, .1); font-size: 16px; transition: background-color var(--stv-transition), transform var(--stv-transition); }

@media (min-width: 900px) {
	.stv-devices__row { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 180px; gap: var(--stv-space-4); }
	.stv-device { padding: var(--stv-space-5); }
	.stv-device--large { grid-column: span 2; grid-row: span 2; }
	.stv-device--large .stv-device__logo,
	.stv-device--large .stv-device__logo-img { max-height: 80px; max-width: 200px; }
	.stv-device--large .stv-device__logo--icon { font-size: 56px; }
	.stv-device--large .stv-device__title { font-size: var(--stv-font-size-2xl); }
	.stv-device--large .stv-device__subtitle { font-size: var(--stv-font-size-sm); }
	.stv-device__title { font-size: var(--stv-font-size-xl); }
}

/* ===== 6. Products (tabs / rows) ===== */
.stv-products__tablist { margin-block-end: var(--stv-space-5); }
.stv-products__tablist .stv-tabs__list { justify-content: center; border: 0; gap: var(--stv-space-2); padding: var(--stv-space-1); }
.stv-products__tablist .stv-tabs__tab { min-height: 40px; padding-inline: var(--stv-space-4); border-radius: var(--stv-radius-pill); background: var(--stv-color-surface-2); }
.stv-products__tablist .stv-tabs__tab::after { display: none; }
.stv-products__tablist .stv-tabs__tab.is-active,
.stv-products__tablist .stv-tabs__tab[aria-selected="true"] { background: var(--stv-color-primary); color: var(--stv-color-on-primary); }
.stv-products__panel[hidden] { display: none; }
.stv-products__row + .stv-products__row { margin-block-start: var(--stv-space-7); }
.stv-products__row-head { margin-block-end: var(--stv-space-5); }

/* ===== 7. Why عابرين ===== */
.stv-why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--stv-space-3); margin: 0; padding: 0; list-style: none; }
.stv-why__item { align-items: center; gap: var(--stv-space-3); padding: var(--stv-space-5) var(--stv-space-4); text-align: center; }
.stv-why__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: var(--stv-radius-md); background: color-mix(in srgb, var(--stv-item-color, var(--stv-color-primary)) 16%, transparent); color: var(--stv-item-color, var(--stv-color-primary)); font-size: 28px; transition: transform var(--stv-transition); }
.stv-why__icon--image { background: var(--stv-color-surface-2); }
.stv-why__icon-img { width: 32px; height: 32px; object-fit: contain; }
.stv-why__title { margin: 0; font-size: var(--stv-font-size-base); font-weight: var(--stv-weight-heading); }
.stv-why__subtitle { margin: 0; font-size: var(--stv-font-size-xs); color: var(--stv-color-text-muted); line-height: 1.6; }

@media (min-width: 600px) {
	.stv-why__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--stv-space-4); }
}

@media (min-width: 1200px) {
	.stv-why__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.stv-why__list--2,
	.stv-why__list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.stv-why__list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.stv-why__list--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/*
 * Phones (< 768px) in the "سلايدر أفقي" mode (SPEC §19.5): one swipe row with
 * scroll snapping and the next card peeking; dots under it follow the scroll
 * position (home.js, they stay hidden without JS). The "شبكة" mode keeps the grid.
 */
.stv-why__dots { display: none; }
.stv-why__dot { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; margin: 0; padding: 0 var(--stv-space-1); border: 0; border-radius: var(--stv-radius-pill); background: transparent; cursor: pointer; }
.stv-why__dot::before { content: ""; display: block; width: 8px; height: 8px; border-radius: var(--stv-radius-pill); background: var(--stv-color-text-faint); transition: width var(--stv-transition), background-color var(--stv-transition); }
.stv-why__dot.is-active::before,
.stv-why__dot[aria-current="true"]::before { width: 24px; background: var(--stv-color-primary); }
.stv-why__dot:focus-visible { outline: none; box-shadow: var(--stv-focus-ring); }

@media (max-width: 767px) {
	/* gap = gutter: once a card snaps to the start, the previous one ends exactly at the screen edge (no sliver) */
	.stv-why--mobile-slider .stv-why__list {
		display: flex;
		gap: var(--stv-gutter);
		margin-inline: calc(-1 * var(--stv-gutter));
		padding: var(--stv-space-1) var(--stv-gutter) var(--stv-space-2);
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-padding-inline: var(--stv-gutter);
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.stv-why--mobile-slider .stv-why__list::-webkit-scrollbar { display: none; }
	.stv-why--mobile-slider .stv-why__list:focus-visible { outline: 2px solid var(--stv-color-primary); outline-offset: -2px; }
	.stv-why--mobile-slider .stv-why__item { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
	.stv-why__dots { display: flex; flex-wrap: wrap; justify-content: center; margin-block-start: var(--stv-space-3); }
}

/* ===== 8. Today's offer (full-bleed slider) ===== */
.stv-offers { width: 100%; padding-block: 0; overflow: hidden; }
.stv-offer { position: relative; display: flex; align-items: center; width: 100%; min-height: 520px; padding-block: var(--stv-space-8); isolation: isolate; }
.stv-offer__backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--stv-color-surface); }
.stv-offer__bg { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(.45); transform: scale(1.1); }
.stv-offer__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, var(--stv-color-background) 0%, rgba(8, 8, 8, .3) 30%, rgba(8, 8, 8, .3) 70%, var(--stv-color-background) 100%); }
.stv-offer > .stv-container { width: 100%; }
.stv-offer__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--stv-space-6); align-items: center; }
.stv-offer__media { display: flex; justify-content: center; }
.stv-offer__media-card { width: 100%; max-width: 420px; padding: var(--stv-space-4); border-radius: var(--stv-radius-xl); background: color-mix(in srgb, var(--stv-color-surface) 92%, transparent); border-color: var(--stv-color-border-strong); }
.stv-offer__img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--stv-radius-lg); }
.stv-offer__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--stv-space-4); }
.stv-offer__badge { font-size: var(--stv-font-size-sm); }
.stv-offer__title { margin: 0; font-size: var(--stv-font-size-3xl); font-weight: var(--stv-weight-heading); line-height: 1.2; text-wrap: balance; }
.stv-offer__desc { margin: 0; max-width: 520px; font-size: var(--stv-font-size-lg); color: var(--stv-color-text-muted); }
.stv-offer__chips { display: flex; flex-wrap: wrap; gap: var(--stv-space-3); margin: 0; padding: 0; list-style: none; }
.stv-price-chip { display: flex; flex-direction: column; gap: 2px; min-width: 96px; padding: var(--stv-space-2) var(--stv-space-4); border: 1px solid var(--stv-color-border-strong); border-radius: var(--stv-radius-md); background: color-mix(in srgb, var(--stv-color-surface-2) 85%, transparent); }
.stv-price-chip__label { font-size: var(--stv-font-size-xs); color: var(--stv-color-text-muted); }
.stv-price-chip__old { font-size: var(--stv-font-size-xs); color: var(--stv-color-text-muted); }
.stv-price-chip__price { font-size: var(--stv-font-size-lg); font-weight: var(--stv-weight-heading); color: var(--stv-color-price); }
.stv-offer__actions { display: flex; flex-wrap: wrap; gap: var(--stv-space-3); margin-block-start: var(--stv-space-2); }
/* .stv-splide doubles the weight so these win over assets/css/sliders.css whatever the load order */
.stv-splide.stv-offers__slider .splide__arrow { top: auto; bottom: var(--stv-space-5); transform: none; }
.stv-splide.stv-offers__slider .splide__pagination { position: absolute; bottom: var(--stv-space-5); inset-inline: 0; margin: 0; pointer-events: none; }
.stv-splide.stv-offers__slider .splide__pagination__page { pointer-events: auto; }

@media (min-width: 900px) {
	.stv-offer { min-height: 560px; padding-block: var(--stv-space-9); }
	.stv-offer__inner { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: var(--stv-space-8); }
	.stv-offer__title { font-size: var(--stv-font-size-4xl); }
	.stv-splide.stv-offers__slider .splide__arrow { top: 50%; bottom: auto; transform: translateY(-50%); }
}

/* ===== 9. Blog top picks + post card ===== */
.stv-top-picks__slider + .stv-top-picks__slider { margin-block-start: var(--stv-space-8); }
.stv-top-picks__head { margin-block-end: var(--stv-space-5); }

.stv-top-picks .stv-post-card { display: flex; flex-direction: column; width: 100%; overflow: hidden; background: var(--stv-color-surface); border: 1px solid var(--stv-color-border); border-radius: var(--stv-radius-lg); transition: transform var(--stv-transition), box-shadow var(--stv-transition); }
.stv-top-picks .stv-post-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--stv-color-surface-2); }
.stv-top-picks .stv-post-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease-out; }
.stv-top-picks .stv-post-card__img--empty { background: var(--stv-gradient-dark); }
.stv-top-picks .stv-post-card__body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: var(--stv-space-2); padding: var(--stv-space-4); }
.stv-top-picks .stv-post-card__cat { font-size: var(--stv-font-size-xs); }
.stv-top-picks .stv-post-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 0; overflow: hidden; font-size: var(--stv-font-size-lg); font-weight: var(--stv-weight-heading); line-height: 1.4; }
.stv-top-picks .stv-post-card__link { color: var(--stv-color-text); text-decoration: none; transition: color var(--stv-transition); }
.stv-top-picks .stv-post-card__meta { display: flex; flex-wrap: wrap; gap: var(--stv-space-3); margin-block-start: auto; font-size: var(--stv-font-size-xs); color: var(--stv-color-text-muted); }
.stv-top-picks .stv-post-card__date,
.stv-top-picks .stv-post-card__reading { display: inline-flex; align-items: center; gap: var(--stv-space-1); }
.stv-top-picks .stv-post-card__meta .stv-icon { font-size: 14px; }
.stv-top-picks .stv-post-card__excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; margin: 0; overflow: hidden; font-size: var(--stv-font-size-sm); color: var(--stv-color-text-muted); }

/* ===== 10. Order steps (sequential reveal) ===== */
.stv-steps__list { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--stv-space-6); margin: 0; padding: 0; list-style: none; counter-reset: stv-step; --stv-step-accent: var(--stv-steps-color, var(--stv-item-color, var(--stv-color-primary))); }
.stv-steps__line { position: absolute; top: 0; bottom: 0; inset-inline-start: 31px; width: 3px; border-radius: var(--stv-radius-pill); background: var(--stv-color-surface-3); overflow: hidden; }
.stv-steps__line-fill { display: block; width: 100% !important; height: var(--stv-steps-progress, 0%); background: var(--stv-gradient-brand); transition: height 600ms ease-out; } /* home.js writes an inline width for the horizontal layout; the vertical mobile line keeps its full width */
.stv-step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--stv-space-2) var(--stv-space-4); opacity: 0; transform: translateY(16px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.stv-step.is-visible,
.stv-no-js .stv-step { opacity: 1; transform: none; }
.stv-step__num { position: relative; z-index: 1; grid-row: span 3; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 3px solid var(--stv-step-accent); border-radius: var(--stv-radius-pill); background: var(--stv-color-surface-2); font-size: var(--stv-font-size-xl); font-weight: var(--stv-weight-heading); color: var(--stv-step-accent); }
.stv-step__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--stv-radius-sm); background: color-mix(in srgb, var(--stv-step-accent) 14%, transparent); color: var(--stv-step-accent); font-size: 22px; }
.stv-step__icon .stv-icon { font-size: 22px; }
.stv-step__icon--image { background: transparent; }
.stv-step__img { width: 40px; height: 40px; object-fit: contain; border-radius: var(--stv-radius-sm); }
.stv-step__title { margin: 0; font-size: var(--stv-font-size-lg); font-weight: var(--stv-weight-heading); }
.stv-step__desc { margin: 0; font-size: var(--stv-font-size-sm); color: var(--stv-color-text-muted); line-height: 1.7; }
.stv-steps__hint { display: flex; align-items: center; justify-content: center; gap: var(--stv-space-2); margin: var(--stv-space-6) 0 0; font-size: var(--stv-font-size-sm); color: var(--stv-color-text-muted); text-align: center; }
.stv-steps__hint-icon { display: inline-flex; font-size: 18px; color: var(--stv-color-secondary); }

@media (min-width: 900px) {
	.stv-steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--stv-space-6); padding-block-start: var(--stv-space-2); }
	.stv-steps__list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stv-steps__list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.stv-steps__list--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.stv-steps__line { top: calc(var(--stv-space-2) + 40px); bottom: auto; inset-inline: 15%; width: auto; height: 3px; }
	.stv-steps__line-fill { width: var(--stv-steps-progress, 0%) !important; height: 100%; transition: width 600ms ease-out; } /* the inline width from home.js and this rule agree; !important keeps the mobile override from leaking */
	.stv-step { display: flex; flex-direction: column; align-items: center; gap: var(--stv-space-3); text-align: center; transform: translateY(24px); }
	.stv-step__num { width: 80px; height: 80px; font-size: var(--stv-font-size-2xl); }
	.stv-step__icon { width: 48px; height: 48px; margin-block-start: calc(-1 * var(--stv-space-2)); }
}

/* ===== 11. Testimonials ===== */
.stv-testimonial { position: relative; display: flex; flex-direction: column; gap: var(--stv-space-4); width: 100%; margin: 0; padding: var(--stv-space-5); }
.stv-testimonial__quote { position: absolute; top: var(--stv-space-3); inset-inline-end: var(--stv-space-4); font-size: 56px; line-height: 1; color: var(--stv-color-primary); opacity: .25; }
.stv-testimonial__quote .stv-icon { font-size: 48px; }
.stv-testimonial__rating { display: inline-flex; }
.stv-testimonial__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; margin: 0; padding: 0; border: 0; overflow: hidden; font-size: var(--stv-font-size-base); line-height: var(--stv-lh-body); }
.stv-testimonial__text p { margin: 0; }
.stv-testimonial__author { display: flex; align-items: center; gap: var(--stv-space-3); margin-block-start: auto; padding-block-start: var(--stv-space-4); border-top: 1px solid var(--stv-color-border); }
.stv-testimonial__avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: var(--stv-radius-pill); overflow: hidden; background: var(--stv-color-primary-soft); color: var(--stv-color-primary); font-weight: var(--stv-weight-heading); }
.stv-testimonial__avatar-img { width: 100%; height: 100%; object-fit: cover; }
.stv-testimonial__initial { font-size: var(--stv-font-size-lg); }
.stv-testimonial__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stv-testimonial__name { font-weight: var(--stv-weight-ui); }
.stv-testimonial__source { display: inline-flex; align-items: center; gap: var(--stv-space-1); font-size: var(--stv-font-size-xs); color: var(--stv-color-text-muted); }
.stv-testimonial__source .stv-icon { font-size: 14px; color: var(--stv-color-success); }
.stv-testimonial__date { margin-inline-start: auto; font-size: var(--stv-font-size-xs); color: var(--stv-color-text-muted); white-space: nowrap; }

/* ===== 12. FAQ ===== */
.stv-faq__list { max-width: 820px; margin-inline: auto; }
.stv-faq__item { border: 1px solid var(--stv-color-border); border-radius: var(--stv-radius-md); background: var(--stv-color-surface); transition: border-color var(--stv-transition); }
.stv-faq__item + .stv-faq__item { margin-block-start: var(--stv-space-3); }
.stv-faq__item:has(.stv-accordion__trigger[aria-expanded="true"]) { border-color: var(--stv-color-primary-soft); box-shadow: var(--stv-shadow-card); }
.stv-faq__item .stv-accordion__trigger { padding: var(--stv-space-4) var(--stv-space-5); font-size: var(--stv-font-size-base); }
.stv-faq__item .stv-accordion__content { padding: 0 var(--stv-space-5) var(--stv-space-5); color: var(--stv-color-text-muted); }

/* ===== 13. About + stats + collage ===== */
.stv-about__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--stv-space-7); align-items: center; }
.stv-about__text { display: flex; flex-direction: column; gap: var(--stv-space-5); }
.stv-about__title { margin: 0; font-size: var(--stv-font-size-3xl); font-weight: var(--stv-weight-heading); line-height: var(--stv-lh-heading); }
.stv-about__body { color: var(--stv-color-text-muted); }
.stv-about__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--stv-space-4); margin: 0; padding: 0; list-style: none; }
.stv-about__stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stv-about__stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stv-about__stat { display: flex; flex-direction: column; gap: var(--stv-space-1); padding: var(--stv-space-4); border: 1px solid var(--stv-color-border); border-radius: var(--stv-radius-md); background: var(--stv-color-surface); }
.stv-about__value { font-size: var(--stv-font-size-3xl); font-weight: var(--stv-weight-heading); line-height: 1.1; color: var(--stv-color-primary); }
.stv-about__label { font-size: var(--stv-font-size-sm); color: var(--stv-color-text-muted); }
.stv-about__collage-track { gap: var(--stv-space-3); }
.stv-about__collage-item { display: block; width: 140px; aspect-ratio: 3 / 4; border-radius: var(--stv-radius-md); overflow: hidden; background: var(--stv-color-surface-2); border: 1px solid var(--stv-color-border); }
.stv-about__collage-img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
	.stv-about--has-collage .stv-about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--stv-space-8); }
	.stv-about__stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.stv-about__title { font-size: var(--stv-font-size-4xl); }
	/* Desktop: the marquee container becomes a tilted 4-column grid (home.js only starts the marquee on mobile) */
	.stv-about__collage { max-height: 560px; padding: var(--stv-space-6) 0; border-radius: var(--stv-radius-xl); overflow: hidden; cursor: default; -webkit-mask-image: linear-gradient(180deg, transparent, var(--stv-color-black) 12%, var(--stv-color-black) 88%, transparent); mask-image: linear-gradient(180deg, transparent, var(--stv-color-black) 12%, var(--stv-color-black) 88%, transparent); }
	.stv-about__collage-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--stv-space-3); width: auto; transform: rotate(-6deg) scale(1.1); transform-origin: center; }
	.stv-about__collage [data-stv-clone] { display: none; }
	.stv-about__collage-item { width: auto; }
	.stv-about__collage-item--1 { transform: translateY(24px); }
	.stv-about__collage-item--2 { transform: translateY(-16px); }
	.stv-about__collage-item--3 { transform: translateY(32px); }
	.stv-about__collage-item--4 { transform: translateY(-8px); }
}

/* ===== 14. Bundles ===== */
.stv-bundles__grid { margin-block-start: 0; }
.stv-bundles__card .stv-badge--save { background: var(--stv-color-secondary); color: var(--stv-color-black); }

/* ===== Package comparison table (SPEC §17) ===== */
.stv-compare__scroll { overflow-x: auto; contain: paint; scrollbar-width: thin; border: 1px solid var(--stv-color-border); border-radius: var(--stv-radius-lg); background: var(--stv-color-surface); box-shadow: var(--stv-shadow-card); }
.stv-compare__scroll:focus-visible { outline: 2px solid var(--stv-color-primary); outline-offset: 2px; }
.stv-compare__table { inline-size: 100%; min-inline-size: 640px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.stv-compare__table th,
.stv-compare__table td { padding: var(--stv-space-3) var(--stv-space-4); border-block-end: 1px solid var(--stv-color-border); text-align: center; vertical-align: middle; }
.stv-compare__table tbody tr:last-child td,
.stv-compare__table tbody tr:last-child th { border-block-end: 0; }
.stv-compare__table tfoot td { border-block-end: 0; border-block-start: 1px solid var(--stv-color-border); }
.stv-compare__corner,
.stv-compare__feature { position: sticky; inset-inline-start: 0; z-index: 1; inline-size: 28%; background: var(--stv-color-surface); text-align: start; }
.stv-compare__feature { font-weight: var(--stv-weight-ui); color: var(--stv-color-text); }
.stv-compare__table .stv-compare__package { padding-block: var(--stv-space-4); vertical-align: top; }
.stv-compare__package > * { display: block; }
.stv-compare__badge { inline-size: fit-content; margin: 0 auto var(--stv-space-2); padding: 2px var(--stv-space-3); border-radius: var(--stv-radius-pill); background: var(--stv-color-secondary-soft); color: var(--stv-color-secondary); font-size: var(--stv-font-size-xs); font-weight: var(--stv-weight-ui); }
.stv-compare__name { font-size: var(--stv-font-size-lg); font-weight: var(--stv-weight-heading); line-height: var(--stv-lh-heading); }
.stv-compare__quality { inline-size: fit-content; margin: var(--stv-space-2) auto 0; padding: 2px var(--stv-space-3); border: 1px solid var(--stv-color-border-strong); border-radius: var(--stv-radius-pill); font-size: var(--stv-font-size-xs); font-weight: var(--stv-weight-ui); color: var(--stv-color-text-muted); }
.stv-compare__quality--primary { border-color: var(--stv-color-primary); background: var(--stv-color-primary-soft); color: var(--stv-color-primary); }
.stv-compare__quality--secondary { border-color: var(--stv-color-secondary); background: var(--stv-color-secondary-soft); color: var(--stv-color-secondary); }
.stv-compare__quality--success { border-color: var(--stv-color-success); background: var(--stv-color-success-soft); color: var(--stv-color-success); }
.stv-compare__price { margin-block-start: var(--stv-space-2); line-height: 1.4; }
.stv-compare__old { display: block; color: var(--stv-color-text-muted); font-size: var(--stv-font-size-xs); }
.stv-compare__current { color: var(--stv-color-price); font-weight: var(--stv-weight-heading); }
.stv-compare__cell { color: var(--stv-color-text); font-weight: var(--stv-weight-ui); }
.stv-compare__cell--no { color: var(--stv-color-text-muted); }
.stv-compare__icon { inline-size: 22px; block-size: 22px; vertical-align: middle; }
.stv-compare__cell--yes .stv-compare__icon { color: var(--stv-color-success); }
.stv-compare__package.is-highlight,
.stv-compare__cell.is-highlight,
.stv-compare__action.is-highlight { background: var(--stv-color-primary-soft); }
.stv-compare__package.is-highlight { box-shadow: inset 0 3px 0 var(--stv-color-primary); }
.stv-compare__action .stv-btn { min-inline-size: 0; }
.stv-compare__note { margin-block-start: var(--stv-space-3); font-size: var(--stv-font-size-sm); color: var(--stv-color-text-muted); text-align: center; }

@media (max-width: 899px) {
	.stv-compare__table th,
	.stv-compare__table td { padding: var(--stv-space-2) var(--stv-space-3); font-size: var(--stv-font-size-sm); }
	.stv-compare__corner,
	.stv-compare__feature { inline-size: 36%; }
	.stv-compare__name { font-size: var(--stv-font-size-base); }
}

/* ===== Hover states (pointer devices only) ===== */
@media (hover: hover) {
	.stv-hero-card:hover { transform: var(--stv-lift); border-color: var(--stv-color-primary); }
	.stv-hero-card:hover .stv-hero-card__cta { text-decoration: underline; }
	.stv-banner-marquee__item:hover { border-color: var(--stv-color-primary); transform: var(--stv-lift); }
	.stv-cat-card:hover { box-shadow: 0 0 0 1px var(--stv-item-color, var(--stv-color-primary)), 0 8px 32px color-mix(in srgb, var(--stv-item-color, var(--stv-color-primary)) 25%, transparent); transform: var(--stv-lift); }
	.stv-cat-card:hover .stv-cat-card__img { transform: scale(1.05); }
	.stv-device:hover { transform: var(--stv-lift); border-color: var(--stv-color-border-strong); box-shadow: var(--stv-shadow-glow); }
	.stv-device:hover .stv-device__glow { opacity: 1; transform: scale(1.15); }
	.stv-device:hover .stv-device__arrow { background: var(--stv-color-primary); color: var(--stv-color-on-primary); }
	.stv-why__item:hover .stv-why__icon { transform: var(--stv-lift) scale(1.05); }
	.stv-why__dot:hover:not(.is-active)::before { background: var(--stv-color-text-muted); }
	.stv-top-picks .stv-post-card:hover { transform: var(--stv-lift); box-shadow: var(--stv-shadow-glow); }
	.stv-top-picks .stv-post-card:hover .stv-post-card__img { transform: scale(1.04); }
	.stv-top-picks .stv-post-card__link:hover { color: var(--stv-color-primary); }
	.stv-faq__item:hover { border-color: var(--stv-color-border-strong); }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
	.stv-hero-card { animation: none; }
	.stv-why__dot::before,
	.stv-banner-marquee__item,
	.stv-cat-card,
	.stv-cat-card__img,
	.stv-device,
	.stv-device__glow,
	.stv-device__arrow,
	.stv-why__icon,
	.stv-top-picks .stv-post-card,
	.stv-top-picks .stv-post-card__img,
	.stv-steps__line-fill,
	.stv-step,
	.stv-faq__item { transition: none; }
	.stv-step { opacity: 1; transform: none; }
	.stv-steps__line-fill { height: 100%; width: 100% !important; } /* all steps stay visible without motion, so the connector is complete */
	.stv-hero-card:hover,
	.stv-cat-card:hover,
	.stv-cat-card:hover .stv-cat-card__img,
	.stv-device:hover,
	.stv-top-picks .stv-post-card:hover { transform: none; }
}
