/* ==========================================================================
   AT-EST · Smart Home Solutions
   Structure: 1 Fonts · 2 Tokens · 3 Base · 4 Components · 5 Site header
              6 Sections (in page order) · 7 Footer · 8 Lightbox
              9 Tablet (≤1199px) · 10 Mobile (≤767px) · 11 Motion
   Everything is scoped to .sh so it cannot affect the rest of the site.
   ========================================================================== */

/* 1 · Fonts (self-hosted, SIL Open Font Licence) ------------------------- */
@font-face { font-family: "AT Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-wdth-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "AT Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations"), url(../fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "AT Plex Sans"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "AT Plex Sans"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "AT Plex Sans"; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "AT Plex Mono"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "AT Plex Mono"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

/* 2 · Tokens -------------------------------------------------------------- */
/* Navy palette: site header + footer */
.sh {
	--atest-navy: #0E1940;
	--bg: #0B1536;
	--surface-1: #0E1940;
	--surface-2: #142251;
	--surface-3: #1B2B62;
	--line: #22336A;
	--line-strong: #33487F;
	--line-control: #6A7FB0;
	--ink: #F3F6FC;
	--ink-muted: #B6C2DE;
	--ink-faint: #93A1C6;
	--accent: #37AEE2;
	--accent-hover: #5BC0EA;
	--on-accent: #0E1940;
	--accent-soft: #16305F;
	--link: #5BC0EA;
	--signal: #3CC8F0;
	--signal-glow: #3CC8F02E;
	--focus-ring: #37AEE2;
	--header-bg: #0A1230;
	--nodes: #2E4687;
	--status-danger: #FF8A7A;

	--font-display: "AT Archivo", "Archivo", system-ui, sans-serif;
	--font-sans: "AT Plex Sans", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "AT Plex Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--type-ui: 500 15px/20px var(--font-sans);
	--type-body-s: 400 14px/22px var(--font-sans);
	--type-hud-label: 500 12px/16px var(--font-mono);
	--type-hud-data: 400 13px/18px var(--font-mono);
	--wrap: 1344px;
	--gutter: 32px;
	--sec-pad: clamp(64px, 8vw, 120px);
	--subnav-h: 56px;
	--admin: 0px;
	--dur-fast: 160ms;
	--ease: cubic-bezier(.2, 0, 0, 1);
	--glow-accent: 0 0 0 1px var(--accent), 0 6px 24px -4px var(--signal-glow);
}
/* Light palette: page body */
.sh .sh-light, .sh-light.sh {
	--bg: #FFFFFF;
	--surface-1: #F3F6FA;
	--surface-2: #E9EEF5;
	--surface-3: #DDE5EF;
	--line: #D6DEE9;
	--line-strong: #B1BFD1;
	--line-control: #6F8299;
	--ink: #0E1940;
	--ink-muted: #44507A;
	--ink-faint: #56618A;
	--accent: #0E1940;
	--accent-hover: #1A2A5E;
	--on-accent: #FFFFFF;
	--accent-soft: #E0F0FA;
	--link: #0268A3;
	--signal: #0268A3;
	--signal-glow: #37AEE226;
	--focus-ring: #0268A3;
	--nodes: #C9D6E6;
	--status-danger: #C0321F;
}

/* 3 · Base ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body.atest-sh-page { margin: 0; background: #0B1536; }
.admin-bar .sh { --admin: 32px; }
.sh { background: var(--bg); color: var(--ink); font: 400 16px/26px var(--font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
.sh, .sh *, .sh *::before, .sh *::after { box-sizing: border-box; }
.sh [hidden] { display: none !important; }
.sh :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
.sh :where(ul, ol) { list-style: none; }
.sh :where(img) { display: block; max-width: 100%; height: auto; border: 0; }
.sh a { color: var(--link); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.sh a:hover { color: var(--signal); }
.sh button { font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; margin: 0; box-shadow: none; min-height: 0; }
.sh :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.sh .sh-ico { display: block; flex-shrink: 0; }
.sh-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent) !important; font: var(--type-ui); }
.sh-skip:focus { top: 12px; }
.sh-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sh-light { background: var(--bg); color: var(--ink); }
.sh section[id] { scroll-margin-top: calc(var(--subnav-h) + var(--admin)); }

.sh-h2 { font: 600 clamp(30px, 3.4vw, 46px)/1.1 var(--font-display); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.sh-lead { font: 400 19px/30px var(--font-sans); color: var(--ink-muted); max-width: 540px; text-wrap: pretty; }
.sh-body { font: 400 16px/26px var(--font-sans); color: var(--ink-muted); text-wrap: pretty; }

/* 4 · Components ---------------------------------------------------------- */
.sh .sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 4px; border: 1px solid transparent; font: var(--type-ui); white-space: nowrap; cursor: pointer; text-decoration: none; transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.sh .sh-btn--s { height: 40px; padding: 0 16px; }
.sh .sh-btn--block { width: 100%; }
.sh .sh-pill { border-radius: 999px; }
.sh .sh-btn--primary { background: var(--accent); color: var(--on-accent); }
.sh .sh-btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: var(--glow-accent); }
.sh .sh-btn--outline { background: transparent; color: var(--ink); border-color: var(--line-control); }
.sh .sh-btn--outline:hover { background: var(--surface-3); color: var(--ink); border-color: var(--accent); }
.sh .sh-btn--ghost { background: transparent; color: var(--link); padding: 0 4px; height: auto; min-height: 48px; }
.sh .sh-btn--ghost:hover { color: var(--signal); }
.sh .sh-btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.sh-btn__arrow { transition: transform var(--dur-fast) var(--ease); }
.sh-btn:hover .sh-btn__arrow { transform: translateX(3px); }

.sh-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 2px; background: var(--accent-soft); color: var(--link); font: var(--type-hud-label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.sh-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/20px var(--font-sans); color: var(--link); }
.sh-eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.sh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-tags span { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font: 400 13px/18px var(--font-sans); color: var(--ink); }
.sh-tags--s span { padding: 5px 10px; font: 500 12px/16px var(--font-sans); }
.sh .sh-round { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: var(--bg); border: 1px solid var(--line-control); border-radius: 999px; color: var(--ink); cursor: pointer; transition: border-color var(--dur-fast); }
.sh .sh-round:hover { border-color: var(--accent); }
.sh-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 4px; border: 1px solid transparent; font: var(--type-body-s); color: var(--ink-muted); }
.sh-note .sh-ico { margin-top: 2px; }
.sh-note--danger { border-color: var(--status-danger); }
.sh-note--danger .sh-ico { color: var(--status-danger); }

.sh-stack { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 56px); }
.sh-stack--m { gap: clamp(32px, 4vw, 48px); }
.sh-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px 72px; align-items: end; }
.sh-head__l { display: flex; flex-direction: column; gap: 18px; }
.sh-head__r { max-width: 520px; }

/* 5 · Site header --------------------------------------------------------- */
.sh-header { position: relative; z-index: 40; background: var(--header-bg); border-bottom: 1px solid var(--line); }
.sh-header__in { max-width: 1376px; margin: 0 auto; padding: 0 32px; height: 72px; display: flex; align-items: center; gap: 28px; }
.sh-logo { display: flex; flex: none; }
.sh-logo__img { height: 36px; width: auto; }
.sh-nav { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 22px; }
.sh .sh-nav__link { display: inline-flex; align-items: center; gap: 4px; height: 72px; padding: 0 2px; background: none; border: 0; font: var(--type-ui); font-size: 14px; color: var(--ink-muted); cursor: pointer; white-space: nowrap; transition: color var(--dur-fast); }
.sh .sh-nav__link:hover { color: var(--ink); }
.sh .sh-nav__link--on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.sh-drop { position: relative; }
.sh-drop__chev { transition: transform var(--dur-fast); }
.sh-drop.is-open .sh-drop__chev { transform: rotate(180deg); }
.sh-drop__menu { position: absolute; top: calc(100% - 6px); left: -16px; min-width: 280px; padding: 6px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55); }
.sh .sh-drop__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 4px; font: var(--type-ui); font-size: 14px; color: var(--ink); white-space: nowrap; }
.sh .sh-drop__item:hover { background: var(--surface-3); color: var(--ink); }
.sh .sh-drop__item.is-current { color: var(--link); }
.sh .sh-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; background: none; border: 1px solid var(--line-control); border-radius: 4px; color: var(--ink); cursor: pointer; }
.sh-burger__close, .sh-burger[aria-expanded="true"] .sh-burger__open { display: none !important; }
.sh-burger[aria-expanded="true"] .sh-burger__close { display: block !important; }
.sh-mobnav { border-top: 1px solid var(--line); background: var(--surface-1); padding: 8px 32px 16px; }
.sh .sh-mobnav__link { display: block; padding: 12px 0; font: var(--type-ui); color: var(--ink); border-bottom: 1px solid var(--line); }
.sh-mobnav__group { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.sh-mobnav__head { padding: 12px 0 6px; font: var(--type-hud-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.sh .sh-mobnav__sol { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font: var(--type-ui); color: var(--ink); }
.sh .sh-mobnav__sol.is-current { color: var(--link); }

/* In-page nav */
.sh-subnav { position: sticky; top: var(--admin); z-index: 30; background: var(--surface-1); border-bottom: 1px solid var(--line); }
.sh-subnav__in { display: flex; align-items: center; gap: 24px; height: var(--subnav-h); }
.sh-subnav__title { font: 600 15px/20px var(--font-display); letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.sh-subnav__links { flex: 1; min-width: 0; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.sh-subnav__links::-webkit-scrollbar { display: none; }
.sh .sh-subnav__links a { font: 500 14px/20px var(--font-sans); color: var(--ink-muted); white-space: nowrap; padding: 8px 0; }
.sh .sh-subnav__links a:hover, .sh .sh-subnav__links a.is-on { color: var(--ink); }
.sh .sh-subnav__links a.is-on { box-shadow: inset 0 -2px 0 var(--accent); }

/* 6 · Sections ------------------------------------------------------------ */
.sh-sec { padding: var(--sec-pad) 0; background: var(--bg); border-top: 1px solid var(--line); }
.sh-sec--alt { background: var(--surface-1); }

/* 01 Hero */
.sh-hero { position: relative; overflow: hidden; background: var(--bg); }
.sh-hero__in { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: clamp(48px, 6vw, 80px); align-items: center; }
.sh-hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 28px; max-width: 600px; }
.sh-hero__badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font: 500 13px/18px var(--font-sans); color: var(--ink-muted); }
.sh-hero__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-glow); }
.sh-hero__title { font: 600 clamp(42px, 5.4vw, 72px)/1.02 var(--font-display); letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.sh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sh .sh-hero__where { align-self: flex-start; display: flex; align-items: center; gap: 8px; font: 500 14px/20px var(--font-sans); color: var(--ink-faint); }
.sh .sh-hero__where:hover { color: var(--ink); }
.sh-hero__fig { position: relative; width: 100%; max-width: 640px; justify-self: center; aspect-ratio: 1 / 0.92; }
.sh-nodes { position: absolute; left: -45%; right: -45%; top: -18%; bottom: -18%; background: var(--nodes); -webkit-mask: url(../images/sh-nodes.svg) center / contain no-repeat; mask: url(../images/sh-nodes.svg) center / contain no-repeat; pointer-events: none; }
.sh-hero__glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, var(--signal-glow), transparent); }
.sh-hero__device { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60%; display: flex; flex-direction: column; gap: 14px; z-index: 2; }
.sh-hero__frame { display: grid; background: #fff; border-radius: 24px; padding: 14px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(4, 10, 30, .7); }
.sh-hero__img { grid-area: 1 / 1; width: 100%; border-radius: 12px; opacity: 0; transition: opacity 400ms var(--ease); }
.sh-hero__img.is-on { opacity: 1; }
.sh-hero__caption { display: flex; justify-content: center; font: 500 13px/18px var(--font-sans); color: var(--ink-muted); }
/* Feature labels around the panel */
.sh-hchips { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.sh-hchip { position: absolute; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink); font: 500 14px/20px var(--font-sans); white-space: nowrap; box-shadow: 0 10px 24px -14px rgba(4, 10, 30, .35); }
.sh-hchip__dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--signal-glow); }
.sh-hchip--tl { left: 0; top: 2%; }
.sh-hchip--tr { right: 0; top: 2%; }
.sh-hchip--bl { left: 0; bottom: 2%; }
.sh-hchip--br { right: 0; bottom: 2%; }

/* 02 How it works */
.sh-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sh-how__card { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; }
.sh-how__card--on { background: var(--accent-soft); border-color: var(--accent); }
.sh-how__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sh-how__t { font: 600 19px/26px var(--font-display); color: var(--ink); }
.sh-how__s { font: 500 13px/18px var(--font-sans); color: var(--ink-faint); text-align: right; }
.sh-how__card--on .sh-how__s { color: var(--link); }
.sh-how__card p { font: 400 15px/24px var(--font-sans); color: var(--ink); }
.sh-steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--bg); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.sh-steps4 li { display: flex; flex-direction: column; gap: 16px; padding: 32px 28px; }
.sh-steps4 li + li { border-left: 1px solid var(--line); }
.sh-steps4__top { display: flex; align-items: center; gap: 12px; }
.sh-steps4__n { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px solid var(--accent); display: inline-flex; align-items: center; justify-content: center; font: 600 16px/1 var(--font-display); color: var(--accent); }
.sh-steps4__n--fill { background: var(--accent); color: var(--on-accent); }
.sh-steps4__line { flex: 1; height: 1px; background: var(--line-strong); }
.sh-steps4 h3 { font: 600 22px/28px var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.sh-steps4 p { font: var(--type-body-s); color: var(--ink-muted); }
.sh-steps4__f { margin-top: auto; font: 400 13px/18px var(--font-sans); color: var(--ink-faint); }

/* 03 Process */
.sh-process { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 32px 0; }
.sh-process li { display: flex; flex-direction: column; gap: 14px; }
.sh-process__top { display: flex; align-items: center; }
.sh-process__n { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid var(--accent); background: var(--bg); display: inline-flex; align-items: center; justify-content: center; font: 600 16px/1 var(--font-display); color: var(--ink); }
.sh-process__line { flex: 1; height: 1px; background: var(--line-strong); }
.sh-process li:last-child .sh-process__line { display: none; }
.sh-process__body { display: flex; flex-direction: column; gap: 14px; padding-right: 20px; }
.sh-process h3 { margin-top: 6px; font: 600 19px/26px var(--font-display); color: var(--ink); }
.sh-process p { font: var(--type-body-s); color: var(--ink-muted); text-wrap: pretty; }

/* 04 Solutions */
.sh-sol { padding-bottom: 0; }
.sh-sol > .sh-wrap:first-child { padding-bottom: clamp(28px, 3vw, 40px); }
.sh-families { position: sticky; top: calc(var(--subnav-h) + var(--admin)); z-index: 20; background: var(--surface-1); }
.sh-families__scroll { padding-top: 16px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; }
.sh-families__scroll::-webkit-scrollbar { display: none; }
.sh-families__list { min-width: 880px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line-control); border-radius: 16px; margin-bottom: 14px; background: var(--bg); }
.sh .sh-family { position: relative; display: flex; align-items: stretch; padding: 10px 12px; height: 72px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink); }
.sh-family + .sh-family::before { content: ""; position: absolute; left: -0.5px; top: 22px; bottom: 22px; width: 1px; background: var(--line-control); }
.sh-family__in { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 1px; padding: 0 12px; border-radius: 8px; transition: background var(--dur-fast); }
.sh-family:hover .sh-family__in { background: var(--surface-2); }
.sh-family__name { font: 500 14px/18px var(--font-sans); }
.sh-family__count { font: 400 12px/16px var(--font-sans); color: var(--ink-faint); }
.sh-family[aria-selected="true"] .sh-family__in { background: var(--ink); color: var(--bg); }
.sh-family[aria-selected="true"] .sh-family__name { font-weight: 600; }
.sh-family[aria-selected="true"] .sh-family__count { color: inherit; opacity: .8; }
.sh-sol__body { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 120px); }
.sh-cat { scroll-margin-top: 160px; display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: center; }
.sh-car { flex: 1 1 420px; max-width: 580px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sh-car__card { background: #fff; border-radius: 24px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(4, 10, 30, .55); overflow: hidden; }
.sh .sh-car__stage { display: block; width: 100%; aspect-ratio: 4 / 3; padding: clamp(24px, 7%, 56px); background: none; border: 0; border-radius: 0; cursor: zoom-in; }
.sh-car__stage img { width: 100%; height: 100%; object-fit: contain; transition: opacity 250ms var(--ease); }
.sh-car__stage img.is-swapping { opacity: 0; }
/* Video slides */
.sh-car__video { position: relative; aspect-ratio: 4 / 3; background: #0B1536; display: flex; align-items: center; justify-content: center; }
.sh-car__video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0B1536; }
.sh .sh-car__expand { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 999px; background: rgba(14, 25, 64, .78); color: #fff; cursor: pointer; }
.sh .sh-car__expand:hover { background: #0E1940; }
.sh-car__ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Dot pager: max 5 visible (set in smart-home.js), active = pill, edge dots smaller */
.sh-car__dots { display: flex; align-items: center; gap: 0; }
.sh .sh-cdot { width: 20px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; padding: 0; }
.sh .sh-cdot[aria-current="true"] { width: 30px; }
.sh-cdot span { width: 7px; height: 7px; background: var(--line-control); border-radius: 999px; transition: width var(--dur-fast), height var(--dur-fast), background-color var(--dur-fast); }
.sh-cdot.is-edge span { width: 4px; height: 4px; opacity: .7; }
.sh-cdot[aria-current="true"] span { width: 22px; background: var(--accent); }
.sh-car__status { margin-left: auto; white-space: nowrap; font: 400 13px/18px var(--font-sans); color: var(--ink-faint); }
.sh-cat__info { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sh-cat__n { font: 500 14px/20px var(--font-sans); color: var(--link); }
.sh-cat__name { margin-top: -8px; font: 600 clamp(26px, 2.6vw, 36px)/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.sh-ptabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sh .sh-ptab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 500 14px/20px var(--font-sans); cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.sh .sh-ptab:hover { border-color: var(--accent); }
.sh .sh-ptab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.sh-prod { display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 2.4vw, 32px); background: var(--bg); border: 1px solid var(--line); border-radius: 20px; }
.sh-prod__head { display: flex; flex-direction: column; gap: 6px; }
.sh-prod__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sh-prod__title h4 { font: 600 22px/28px var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.sh-prod__model { font: 400 13px/18px var(--font-mono); color: var(--ink-faint); }
.sh-prod__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px 28px; align-items: start; }
.sh-prod__points { display: flex; flex-direction: column; gap: 10px; }
.sh-prod__points li { display: flex; gap: 10px; font: var(--type-body-s); color: var(--ink); }
.sh-prod__points .sh-ico { color: var(--link); margin-top: 3px; }
.sh-prod__specs { display: grid; grid-template-columns: minmax(80px, auto) 1fr; gap: 10px 18px; padding: 18px 20px; background: var(--surface-2); border-radius: 14px; }
.sh-prod__specs dt { font: 500 12px/18px var(--font-sans); color: var(--ink-faint); }
.sh-prod__specs dd { font: 400 13px/18px var(--font-mono); color: var(--ink); }
.sh-prod__protos { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-prod__protos span { font: 500 12px/16px var(--font-sans); padding: 5px 10px; background: var(--accent-soft); border-radius: 999px; color: var(--ink); }
.sh-prod__foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
.sh-prod__foot > span { flex: 1 1 240px; font: 400 12px/18px var(--font-sans); color: var(--ink-faint); }

/* 05 Applications */
.sh-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.sh-room { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 20px; }
.sh-room__top { display: flex; align-items: center; gap: 16px; }
.sh-room__icon { width: 56px; height: 56px; flex: none; border-radius: 16px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.sh-room__icon img { width: 30px; height: 30px; object-fit: contain; }
.sh-room h3 { font: 600 20px/26px var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.sh-room p { flex: 1; font: var(--type-body-s); color: var(--ink-muted); }

/* 06 Compatibility */
.sh-compat { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 32px 56px; align-items: center; }
.sh-protos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.sh .sh-proto { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 16px; min-height: 76px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; text-align: left; transition: background var(--dur-fast), border-color var(--dur-fast); }
.sh .sh-proto:hover { border-color: var(--accent); }
.sh-proto__name { font: 600 15px/20px var(--font-sans); }
.sh-proto__sub { font: 400 12px/16px var(--font-sans); color: var(--ink-faint); }
.sh .sh-proto[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sh-proto[aria-pressed="true"] .sh-proto__sub { color: var(--on-accent); }
.sh-plist { padding: clamp(22px, 3vw, 32px); background: var(--bg); border: 1px solid var(--line); border-radius: 20px; }
.sh-plist__panel { display: flex; flex-direction: column; gap: 18px; }
.sh-plist__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sh-plist__head > div { display: flex; flex-direction: column; gap: 6px; }
.sh-plist__group { font: 500 13px/18px var(--font-sans); color: var(--link); }
.sh-plist__head h3 { font: 600 26px/32px var(--font-display); letter-spacing: -0.015em; color: var(--ink); }
.sh-plist__count { font: 400 13px/18px var(--font-sans); color: var(--ink-faint); }
.sh-plist__items { display: flex; flex-direction: column; }
.sh .sh-plist__item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 0; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; cursor: pointer; text-align: left; color: var(--ink); font: 500 14px/20px var(--font-sans); transition: color var(--dur-fast); }
.sh .sh-plist__item:hover { color: var(--link); }
.sh-plist__thumb { width: 60px; height: 44px; flex: none; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.sh-plist__thumb img { max-width: 100%; max-height: 100%; }
.sh-plist__name { flex: 1; }

/* 08 Start your project */
.sh-start__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(40px, 5vw, 80px); align-items: start; }
.sh-start__copy { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.sh-next { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.sh-next li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; font: var(--type-body-s); color: var(--ink); }
.sh-next__n { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1.5px solid var(--accent); display: inline-flex; align-items: center; justify-content: center; font: 600 14px/1 var(--font-display); color: var(--ink); }
.sh-next__n--fill { background: var(--accent); color: var(--on-accent); }
.sh-formcard { background: var(--bg); border: 1px solid var(--line-strong); border-radius: 24px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 40px 80px -50px rgba(4, 10, 30, .6); }
.sh-form { display: flex; flex-direction: column; gap: 20px; }
.sh-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.sh-field { display: flex; flex-direction: column; gap: 8px; }
.sh-field label { font: 500 14px/20px var(--font-sans); color: var(--ink); }
.sh-req { color: var(--ink-faint); }
.sh .sh-field input, .sh .sh-field textarea, .sh .sh-field select { width: 100%; max-width: none; margin: 0; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-control); border-radius: 4px; font: 400 16px/26px var(--font-sans); height: 48px; padding: 0 14px; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.sh .sh-field textarea { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; }
.sh .sh-field select { background: var(--surface-1); padding-right: 44px; cursor: pointer; }
.sh .sh-field input::placeholder, .sh .sh-field textarea::placeholder { color: var(--ink-faint); opacity: 1; }
.sh .sh-field input:focus, .sh .sh-field textarea:focus, .sh .sh-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--signal-glow); }
.sh .sh-field [aria-invalid="true"] { border-color: var(--status-danger); }
.sh-select { position: relative; }
.sh-select .sh-ico { position: absolute; right: 14px; top: 15px; pointer-events: none; color: var(--ink-muted); }
.sh-field__err { display: flex; gap: 6px; align-items: center; font: var(--type-body-s); color: var(--status-danger); }
.sh-form__submit { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.sh-form__fine { font: 400 12px/18px var(--font-sans); color: var(--ink-faint); }
.sh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sh-btn.is-loading { pointer-events: none; opacity: .7; }
.sh-done { display: flex; flex-direction: column; gap: 18px; padding: 24px 0; outline: none; }
.sh-done__tick { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); }
.sh-done h3 { font: 600 26px/32px var(--font-display); color: var(--ink); }
.sh-done p { font: 400 16px/26px var(--font-sans); color: var(--ink-muted); }

/* 09 Final CTA */
.sh-final { position: relative; overflow: hidden; background: var(--bg); border-top: 1px solid var(--line); }
.sh-nodes--wide { left: -10%; right: -10%; top: -30%; bottom: -30%; }
.sh-final__fade { position: absolute; inset: 0; background: radial-gradient(ellipse 40% 50% at center, var(--bg) 30%, transparent 100%); }
.sh-final__in { position: relative; max-width: 820px; margin: 0 auto; padding: clamp(96px, 12vw, 168px) var(--gutter); display: flex; flex-direction: column; gap: 26px; align-items: center; text-align: center; }
.sh-final__title { font: 600 clamp(40px, 5vw, 68px)/1.04 var(--font-display); letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.sh-final .sh-lead { max-width: 520px; }

/* 7 · Footer -------------------------------------------------------------- */
.sh-footer { background: var(--atest-navy); color: #E8EEF5; padding: 64px 0 28px; }
.sh-footer__in { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.sh-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.sh-footer__brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.sh-footer__brand .sh-logo__img { height: 40px; }
.sh-footer__brand p { font: var(--type-body-s); color: #C9D3E3; max-width: 360px; }
.sh-footer__h { font: var(--type-hud-label); letter-spacing: .14em; text-transform: uppercase; color: #9AABC0; margin-bottom: 14px; }
.sh-footer__list { display: flex; flex-direction: column; gap: 10px; }
.sh-footer__list--contact { gap: 12px; }
.sh .sh-footer__list a { font: var(--type-body-s); color: #C9D3E3; }
.sh .sh-footer__list a:hover { color: #37AEE2; }
.sh-footer__row { display: flex; gap: 10px; align-items: flex-start; font: var(--type-body-s); color: #C9D3E3; }
.sh-footer__row .sh-ico { margin-top: 3px; }
.sh .sh-footer__list .sh-footer__mail { color: #37AEE2; }
.sh-footer__bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font: var(--type-hud-data); font-size: 12px; color: #9AABC0; }

/* 8 · Lightbox ------------------------------------------------------------ */
.sh-lb { position: fixed; inset: 0; z-index: 100000; background: rgba(6, 12, 34, .9); display: flex; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 48px); overscroll-behavior: contain; }
.sh-lb__box { width: min(100%, 1040px); max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 16px; background: var(--surface-1); border: 1px solid var(--line); border-radius: 24px; padding: clamp(14px, 2vw, 24px); }
.sh-lb__bar { display: flex; align-items: center; gap: 16px; }
.sh-lb__title { flex: 1; min-width: 0; font: 600 19px/26px var(--font-display); color: var(--ink); }
.sh-lb__count { font: 400 13px/18px var(--font-sans); color: var(--ink-faint); white-space: nowrap; }
.sh .sh-lb__close { background: var(--surface-2); }
.sh-lb__stage { position: relative; background: #fff; border-radius: 16px; display: flex; align-items: center; justify-content: center; height: min(64vh, 620px); padding: 24px; }
.sh-lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sh-lb__stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0B1536; border-radius: 10px; }
.sh-lbthumb.is-video { position: relative; }
.sh-lbthumb.is-video::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -7px 0 0 -4px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .6)); }
.sh .sh-lb__nav { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: #0E1940; border: 0; border-radius: 999px; color: #fff; cursor: pointer; }
.sh .sh-lb__nav:hover { background: #1A2A5E; }
.sh-lb__nav--prev { left: 12px; }
.sh-lb__nav--next { right: 12px; }
.sh-lb__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sh-lb__alt { flex: 1; min-width: 200px; font: var(--type-body-s); color: var(--ink-muted); }
.sh-lb__thumbs { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; }
.sh .sh-lbthumb { width: 64px; height: 48px; flex: none; background: #fff; border: 2px solid transparent; border-radius: 10px; padding: 3px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sh .sh-lbthumb[aria-current="true"] { border-color: #37AEE2; }
.sh-lbthumb img { max-width: 100%; max-height: 100%; }
.sh-lb__hint { font: 400 12px/18px var(--font-sans); color: var(--ink-faint); }
.sh-lock { overflow: hidden; }

/* 9 · Tablet (≤1239px header, ≤1199px layout) ----------------------------- */
@media (max-width: 1239px) {
	.sh-nav { display: none; }
	.sh-header__in { gap: 12px; }
	.sh-logo { margin-right: auto; }
	.sh .sh-burger { display: inline-flex; }
}
@media (max-width: 1199px) {
	.sh-process { grid-template-columns: 1fr; gap: 0; max-width: 720px; }
	.sh-process li { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; }
	.sh-process__top { flex-direction: column; align-self: stretch; }
	.sh-process__line { width: 1px; height: auto; flex: 1; min-height: 16px; margin: 6px 0; }
	.sh-process__body { padding: 8px 0 28px; gap: 6px; }
	.sh-process li:last-child .sh-process__body { padding-bottom: 0; }
	.sh-process h3 { margin-top: 0; }

	.sh-how__card { padding: 24px; }
	.sh-steps4 { grid-template-columns: 1fr 1fr; }
	.sh-steps4 li + li { border-left: 0; }
	.sh-steps4 li:nth-child(even) { border-left: 1px solid var(--line); }
	.sh-steps4 li:nth-child(n + 3) { border-top: 1px solid var(--line); }
	.sh-steps4__line { display: none; }
}

/* 10 · Mobile (≤767px) ---------------------------------------------------- */
@media (max-width: 767px) {
	.sh { --gutter: 20px; }
	.sh-header__in { height: 64px; padding: 0 20px; }
	.sh-logo__img { height: 30px; }
	.sh-mobnav { padding: 8px 20px 16px; }

	.sh-subnav__in { gap: 14px; }
	.sh-subnav__title { display: none; }
	.sh-subnav__links { gap: 18px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 16px; }
	.sh-subnav .sh-btn--s { height: 36px; padding: 0 14px; font-size: 14px; }

	.sh-hero__in { gap: 40px; }
	.sh-hero__copy { gap: 22px; }
	.sh-hero__title { font-size: clamp(36px, 10.5vw, 44px); line-height: 1.05; }
	.sh-lead { font-size: 17px; line-height: 27px; }
	.sh-hero__actions .sh-btn { flex: 1 1 auto; }
	/* Panel in the flow, feature labels as a 2×2 grid underneath */
	.sh-hero__fig { aspect-ratio: auto; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 8px; }
	.sh-hero__device { position: relative; left: auto; top: auto; transform: none; width: 78%; }
	.sh-hero__frame { border-radius: 18px; padding: 10px; }
	.sh-hero__img { border-radius: 9px; }
	.sh-hchips { position: relative; inset: auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.sh-hchip { position: static; height: auto; min-height: 44px; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 18px; white-space: normal; align-items: center; }

	.sh-head { gap: 16px; }
	.sh-how { grid-template-columns: 1fr; }
	.sh-how__card { padding: 22px; border-radius: 16px; }
	.sh-steps4 { grid-template-columns: 1fr; border-radius: 16px; }
	.sh-steps4 li { padding: 24px 22px; }
	.sh-steps4 li:nth-child(even) { border-left: 0; }
	.sh-steps4 li + li { border-top: 1px solid var(--line); }
	.sh-steps4 h3 { font-size: 20px; line-height: 26px; }

	.sh-families { position: relative; top: auto; }
	.sh-families__scroll { padding-left: 0; padding-right: 0; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
	.sh-families__list { min-width: 0; display: flex; gap: 8px; border: 0; border-radius: 0; background: none; padding: 0 var(--gutter); margin-bottom: 8px; width: max-content; }
	.sh .sh-family { height: 64px; padding: 0; border: 1px solid var(--line-control); border-radius: 12px; background: var(--bg); scroll-snap-align: start; }
	.sh-family + .sh-family::before { display: none; }
	.sh-family__in { padding: 0 14px; border-radius: 11px; }
	.sh-family__name { white-space: nowrap; }
	.sh .sh-family[aria-selected="true"] { border-color: var(--ink); }
	.sh-sol__body { padding-top: 32px; }
	.sh-cat { gap: 28px; }
	.sh-car { flex-basis: 100%; max-width: none; }
	.sh-car__card { border-radius: 18px; }
	.sh .sh-car__expand { top: 8px; right: 8px; width: 32px; height: 32px; }
	/* Arrows and dots centred; counter on its own centred line */
	.sh-car__ctrl { justify-content: center; row-gap: 2px; }
	.sh-car__status { flex-basis: 100%; margin-left: 0; text-align: center; }
	.sh-cat__info { flex-basis: 100%; gap: 16px; }
	.sh-prod { border-radius: 16px; }
	.sh-prod__foot .sh-btn { width: 100%; }

	.sh-room { padding: 22px; border-radius: 16px; }
	.sh-protos { grid-template-columns: 1fr 1fr; }
	.sh .sh-proto { padding: 14px; min-height: 68px; }
	.sh-plist { border-radius: 16px; }
	.sh-plist__head h3 { font-size: 22px; line-height: 28px; }

	.sh-formcard { border-radius: 18px; }
	.sh-next li { align-items: flex-start; }

	.sh-footer { padding: 48px 0 24px; }
	.sh-footer__grid { gap: 32px; }
	.sh-footer__bottom { margin-top: 36px; }

	.sh-lb { padding: 10px; }
	.sh-lb__box { border-radius: 18px; gap: 12px; }
	.sh-lb__stage { height: min(56vh, 460px); padding: 14px; border-radius: 12px; }
	.sh .sh-lb__nav { width: 40px; height: 40px; margin-top: -20px; }
	.sh-lb__nav--prev { left: 8px; }
	.sh-lb__nav--next { right: 8px; }
	.sh-lb__hint { display: none; }
}
@media (max-width: 782px) { .admin-bar .sh { --admin: 46px; } }
@media (max-width: 600px) { .admin-bar .sh { --admin: 0px; } }

/* 11 · Motion preferences ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.sh *, .sh *::before, .sh *::after { animation: none !important; transition: none !important; }
}
