/* ============================================================
 * Homepage sections shared by every design direction (S, A · Noir,
 * B · Blueprint, C · Casa): the shelly.com structure, driven by tokens.
 * Defaults are Direction S's values; each direction's stylesheet
 * (loaded after this one) re-sets the tokens and adds its own touches.
 * Scoped to body.vs-home, set on the front page (inc/design-variants.php).
 * Generated from the section rules of s.css (theme 1.9.2).
 * ========================================================== */
.vs-home {
	--s-ink: #121519; --s-white: #FDFDFD; --s-well: #F0F4F7; --s-chip: #EAF3FA; --s-grey: #656669;
	--s-blue: #4594D1; --s-mid: #2481C7; --s-deep: #003C82; --s-sky: #9CDBF6;
	--s-grad: linear-gradient(90deg, #4594D1 0%, #003C82 100%);
	--s-grad-pale: linear-gradient(90deg, #FDFDFD 0%, #DCEBF7 100%);
	--s-grad-dark: linear-gradient(90deg, #353638 0%, #121519 100%);
	--s-navy: linear-gradient(180deg, #0D1115 0%, #122232 100%);
	--s-max: 1540px; --s-pad: clamp(16px, 3.4vw, 48px);
	
/* Direction tokens */
	--v-font: 'Manrope', sans-serif; --v-w-title: 600;
	--v-bg: var(--s-white); --v-text: var(--s-ink);
	--v-r-xs: 8px; --v-r-sm: 10px; --v-r: 14px; --v-r-lg: 16px; --v-r-pill: 999px;
	
/* The shelly.com-copied sections (inc/shelly-com-pages.php) follow the same tokens. */
	--sc-ink: var(--v-text); --sc-white: var(--s-white); --sc-well: var(--s-well); --sc-blue: var(--s-blue);
	--sc-deep: var(--s-deep); --sc-grad: var(--s-grad); --sc-navy: var(--s-navy);
}
.vs-home .vs-wrap { max-width: var(--shelly-page-max); margin-inline: auto; padding-inline: var(--shelly-pad-x); }
@media (max-width: 989px) {
	.vs-home .vs-wrap { padding-inline: var(--shelly-pad-x-mobile); }
}
/* ---------- Type ---------- */
.vs-home .vs-eyebrow { display: block; margin: 0 0 12px; font: 700 14px/1.4 var(--v-font); letter-spacing: 0.02em; text-transform: uppercase; color: var(--s-blue); }
.vs-home .vs-h2, .vs-home :is(.shelly-benefits__title, .shelly-journey__title, .shelly-prolane__title, .shelly-categories__title, .shelly-apppromo__title, .shelly-builder__head h2) { margin: 0 0 24px; font: var(--v-w-title) clamp(30px, 2.9vw, 42px)/1.2 var(--v-font) !important; letter-spacing: 0 !important; color: var(--v-text); }
.vs-home .vs-h3 { margin: 0 0 20px; font: 700 24px/1.2 var(--v-font); color: inherit; }
.vs-home .vs-statement { max-width: 900px; margin: 0 auto 24px; text-align: center; font: var(--v-w-title) clamp(34px, 4.4vw, 64px)/1.2 var(--v-font); color: var(--v-text); text-wrap: balance; }
.vs-home .vs-grad { background: var(--s-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vs-home .vs-dark { background: var(--s-navy); color: var(--s-white); }
.vs-home .vs-dark .vs-h2, .vs-home .vs-dark h3 { color: var(--s-white); }
/* ---------- Buttons ---------- */
.vs-home .vs-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 56px; font: 700 16px/1.5 var(--v-font) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--s-white) !important; background: var(--s-grad) !important; border: 0 !important; border-radius: var(--v-r-sm) !important; box-shadow: none !important; transition: filter 200ms ease, transform 200ms ease; }
.vs-home .vs-btn:hover { filter: brightness(1.12); color: var(--s-white) !important; }
.vs-home .vs-btn--sm { min-height: 44px; padding: 10px 24px; font-size: 15px !important; }
.vs-home .vs-btn--outline { min-height: 44px; padding: 10px 24px; font: 700 16px/1.5 var(--v-font) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--s-ink) !important; background: var(--s-well) !important; border: 0 !important; border-radius: var(--v-r-sm) !important; }
.vs-home .vs-btn--outline:hover { filter: none; background: #DCEBF7 !important; color: var(--s-ink) !important; }
.vs-home .vs-btn--pale { min-height: 44px; padding: 10px 46px; font: 700 16px/1.5 var(--v-font) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--s-ink) !important; background: var(--s-grad-pale) !important; border: 0 !important; border-radius: var(--v-r-sm) !important; }
.vs-home .vs-btn--ghost-light { min-height: 44px; padding: 10px 46px; font-size: 15px !important; background: transparent !important; border: 1px solid rgba(253, 253, 253, 0.6) !important; }
.vs-home .vs-btn--ghost-light:hover { background: rgba(253, 253, 253, 0.12) !important; filter: none; }
.vs-home .vs-round { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; color: var(--s-blue); background: transparent; border: 1px solid var(--s-blue); border-radius: var(--v-r-pill); cursor: pointer; transition: background 160ms ease, color 160ms ease; }
.vs-home .vs-round:first-child svg { transform: scaleX(-1); }
.vs-home .vs-round:hover { color: var(--s-white); background: var(--s-blue); }
/* ---------- Stat tiles ---------- */
.vs-home .vs-metrics { padding: 22px 0 40px; background: var(--v-bg); }
.vs-home .vs-metrics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 8px; }
.vs-home .vs-metrics__tile { display: flex; flex-wrap: wrap; align-content: space-between; min-height: 116px; padding: 16px 16px 18px; border-radius: var(--v-r-sm); background: linear-gradient(90deg, #EEF4F9 0%, #F7FAFC 100%); color: var(--v-text); }
.vs-home .vs-metrics__value, .vs-home .vs-metrics__unit { font: 700 clamp(26px, 2.2vw, 34px)/1.1 var(--v-font); color: var(--s-mid); font-variant-numeric: tabular-nums; }
.vs-home .vs-metrics__label { flex-basis: 100%; font: 600 14px/1.3 var(--v-font); }
.vs-home .vs-metrics__tile--link { flex-direction: column; align-items: flex-start; justify-content: space-between; color: var(--s-white); background: var(--s-grad); transition: filter 200ms ease; }
.vs-home .vs-metrics__tile--link svg { align-self: flex-end; }
.vs-home .vs-metrics__tile--link:hover { filter: brightness(1.1); color: var(--s-white); }
.vs-home .vs-metrics__link-title { font: 700 18px/1.2 var(--v-font); }
/* ---------- Products rail + cards ---------- */
.vs-home .vs-products { padding: 40px 0 88px; background: var(--v-bg); overflow: hidden; }
.vs-home .vs-products__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vs-home .vs-products__head .vs-h2 { margin: 0; }
.vs-home .vs-products__controls { display: flex; align-items: center; gap: 12px; }
.vs-home .vs-products__controls .vs-btn--outline { margin-inline-start: 18px; background: transparent !important; border: 1px solid var(--s-blue) !important; color: var(--s-mid) !important; }
.vs-home .vs-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 24px; }
.vs-home .vs-pill { padding: 6px 14px; font: 600 14px/1.5 var(--v-font); color: var(--v-text); background: transparent; border: 1px solid #D6DCE3; border-radius: var(--v-r-pill); cursor: pointer; transition: border-color 160ms ease, color 160ms ease, background 160ms ease; }
.vs-home .vs-pill:hover { border-color: var(--s-blue); }
.vs-home .vs-pill.is-active { color: var(--s-mid); border-color: var(--s-blue); background: var(--s-chip); }
.vs-home .vs-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 20px) / 4.6); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline-end: calc(-1 * var(--s-pad)); padding-inline-end: var(--s-pad); }
.vs-home .vs-rail::-webkit-scrollbar { display: none; }
.vs-home .vs-rail[hidden] { display: none; }
.vs-home .vs-card { display: flex; flex-direction: column; scroll-snap-align: start; min-width: 0; }
.vs-home .vs-card__media { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 0.95; margin-bottom: 16px; border-radius: var(--v-r); background: var(--s-well); overflow: hidden; }
.vs-home .vs-card__media img { width: 72%; height: 72%; object-fit: contain; mix-blend-mode: multiply; transition: transform 400ms ease; }
.vs-home .vs-card:hover .vs-card__media img { transform: scale(1.05); }
.vs-home .vs-card__badge { position: absolute; top: 14px; left: 14px; padding: 2px 10px; font: 600 12px/1.5 var(--v-font); color: var(--s-mid); background: var(--v-bg); border: 1px solid var(--s-blue); border-radius: var(--v-r-pill); }
.vs-home .vs-card__heart { position: absolute; top: 14px; right: 14px; color: var(--s-blue); }
.vs-home .vs-card__tech { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 10px; color: var(--s-blue); }
.vs-home .vs-card__name { margin: 0 0 6px; font: 700 clamp(18px, 1.5vw, 24px)/1.2 var(--v-font); }
.vs-home .vs-card__name a { color: var(--v-text); }
.vs-home .vs-card__price { margin: 0 0 12px; font: 500 14px/1.4 var(--v-font); color: var(--v-text); }
.vs-home .vs-card__pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.vs-home .vs-card__pills li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font: 500 13px/1.4 var(--v-font); color: var(--s-mid); background: var(--s-chip); border-radius: var(--v-r-pill); }
.vs-home .vs-card__add { width: 100%; min-height: 52px; margin-top: auto; padding: 14px 0; font-size: 14px !important; font-weight: 600 !important; }
.vs-home .vs-card__add.added::after { content: none; }
.vs-home .vs-card .added_to_cart { display: block; margin-top: 8px; text-align: center; font: 700 14px/1.4 var(--v-font); color: var(--s-mid); }
/* ---------- Why statement + video ---------- */
.vs-home .vs-why { padding: 72px 0 40px; background: var(--v-bg); text-align: center; }
.vs-home .vs-why__video { position: relative; display: block; max-width: 1080px; margin: 48px auto 0; aspect-ratio: 16 / 9; border-radius: var(--v-r-lg); background: center / cover no-repeat; overflow: hidden; }
.vs-home .vs-why__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; color: var(--s-white); border: 1px solid rgba(253, 253, 253, 0.7); border-radius: var(--v-r-pill); background: rgba(18, 21, 25, 0.25); backdrop-filter: blur(6px); transition: transform 200ms ease; }
.vs-home .vs-why__video:hover .vs-why__play { transform: scale(1.08); }
/* ---------- Solutions accordion ---------- */
.vs-home .vs-solutions { padding: 40px 0 72px; }
.vs-home .vs-solutions .vs-eyebrow { margin-top: 0; }
.vs-home .vs-solutions__row { display: flex; gap: 12px; height: clamp(420px, 42vw, 560px); margin-top: 8px; }
.vs-home .vs-solution { position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--v-r-lg); background: center / cover no-repeat; overflow: hidden; cursor: pointer; transition: flex-grow 600ms cubic-bezier(.2,.7,.2,1); outline-offset: 3px; }
.vs-home .vs-solution::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 17, 21, 0.25) 0%, rgba(13, 17, 21, 0.72) 100%); transition: background 400ms ease; }
.vs-home .vs-solution.is-open { flex-grow: 5.4; cursor: default; }
.vs-home .vs-solution.is-open::before { background: linear-gradient(180deg, rgba(13, 17, 21, 0.1) 0%, rgba(13, 17, 21, 0.62) 100%); }
.vs-home .vs-solution > .vs-solution__icon { position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%); color: var(--s-white); transition: opacity 300ms ease; }
.vs-home .vs-solution.is-open > .vs-solution__icon { opacity: 0; }
.vs-home .vs-solution__body { position: absolute; left: 50%; bottom: 44px; width: min(420px, 86%); transform: translateX(-50%); text-align: center; color: var(--s-white); opacity: 0; pointer-events: none; transition: opacity 300ms ease 120ms; }
.vs-home .vs-solution.is-open .vs-solution__body { opacity: 1; pointer-events: auto; }
.vs-home .vs-solution__icon--sm { display: block; margin-bottom: 8px; }
.vs-home .vs-solution__body h3 { margin: 0 0 8px; font: 700 clamp(24px, 2.2vw, 32px)/1.2 var(--v-font); color: var(--s-white); }
.vs-home .vs-solution__body p { margin: 0 0 20px; font: 500 15px/1.5 var(--v-font); color: rgba(253, 253, 253, 0.88); }
/* ---------- Compatibility band ---------- */
.vs-home .vs-compat { padding: 80px 0 24px; background: var(--v-bg); }
.vs-home .vs-compat__band { position: relative; display: grid; grid-template-columns: 1fr minmax(280px, 400px); align-items: center; min-height: 520px; padding: 48px 56px; border-radius: var(--v-r-lg); background: center / cover no-repeat; overflow: hidden; color: var(--s-white); }
.vs-home .vs-compat__band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 17, 21, 0.15) 0%, rgba(13, 17, 21, 0.55) 55%, rgba(13, 17, 21, 0.85) 100%); }
.vs-home .vs-compat__copy { position: relative; grid-column: 2; }
.vs-home .vs-compat__copy .vs-h2 { color: var(--s-white); font-weight: 700 !important; }
.vs-home .vs-compat__copy p { margin: 0 0 16px; font: 600 16px/1.5 var(--v-font); }
.vs-home .vs-compat__tiles { position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: calc(100% - 96px); margin: 0; padding: 0; list-style: none; }
.vs-home .vs-compat__tiles li { display: grid; justify-items: center; gap: 4px; width: 66px; padding: 8px 4px; font: 600 11px/1.15 var(--v-font); text-align: center; color: var(--s-ink); background: var(--v-bg); border-radius: var(--v-r-xs); }
.vs-home .vs-compat__mark { width: 26px; height: 26px; display: grid; place-items: center; font: 800 14px/1 var(--v-font); color: var(--s-white); background: var(--s-grad); border-radius: var(--v-r-pill); }
.vs-home .vs-compat__more { background: var(--s-grad) !important; }
.vs-home .vs-compat__more a { display: grid; place-items: center; height: 100%; color: var(--s-white); font-weight: 700; }
/* ---------- Planner ---------- */
.vs-home .shelly-builder__app { border-radius: var(--v-r-lg); }
/* ---------- Responsive ---------- */
@media (max-width: 1179px) {
	.vs-home .vs-metrics__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vs-home .vs-metrics__tile--link { grid-column: 1 / -1; min-height: 90px; }
	.vs-home .vs-rail { grid-auto-columns: calc((100% - 2 * 16px) / 2.6); gap: 16px; }
}
@media (max-width: 989px) {
	.vs-home .vs-products__controls .vs-round { display: none; }
	.vs-home .vs-solutions__row { flex-direction: column; height: auto; }
	.vs-home .vs-solution { flex: none; height: 84px; transition: height 500ms ease; }
	.vs-home .vs-solution.is-open { height: 420px; }
	.vs-home .vs-solution > .vs-solution__icon { left: 24px; bottom: 50%; transform: translateY(50%); }
	.vs-home .vs-compat__band { grid-template-columns: 1fr; padding: 32px 24px 200px; min-height: 0; }
	.vs-home .vs-compat__copy { grid-column: 1; }
	.vs-home .vs-compat__tiles { width: calc(100% - 32px); bottom: 24px; }
}
@media (max-width: 639px) {
	.vs-home .vs-rail { grid-auto-columns: 78%; }
	.vs-home .vs-products__head { flex-wrap: wrap; }
	.vs-home .vs-products__controls .vs-btn--outline { margin: 0; }
	.vs-home .vs-btn { padding-inline: 32px; }
}
@media (prefers-reduced-motion: reduce) {
	.vs-home .vs-solution, .vs-home .vs-card__media img { transition: none; }
}
/* The hero is above the fold: never wait for the scroll reveal. */
.vs-home .sc-slider.shelly-reveal, .vs-home .vs-metrics.shelly-reveal { opacity: 1 !important; transform: none !important; }
/* Hero pause / play, beside the pagination dashes. */
.vs-home .vs-hero-pause { position: absolute; right: max(var(--s-pad), calc((100vw - var(--s-max)) / 2 + var(--s-pad))); bottom: 27px; pointer-events: auto; width: 26px; height: 26px; padding: 0; border: 1px solid rgba(253, 253, 253, 0.55); border-radius: var(--v-r-pill); background: transparent; cursor: pointer; }
.vs-home .vs-hero-pause::before, .vs-home .vs-hero-pause::after { content: ""; position: absolute; top: 8px; width: 2px; height: 8px; background: #FDFDFD; }
.vs-home .vs-hero-pause::before { left: 9px; }
.vs-home .vs-hero-pause::after { left: 13px; }
.vs-home .vs-hero-pause.is-paused::before { left: 9px; top: 7px; width: 0; height: 0; background: none; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #FDFDFD; }
.vs-home .vs-hero-pause.is-paused::after { content: none; }
.vs-home .vs-hero-pause:hover { background: rgba(253, 253, 253, 0.14); }
@media (max-width: 989px) {
	.vs-home .vs-hero-pause { right: auto; left: calc(var(--s-pad) + 150px); bottom: 19px; }
}
