/* =====================================================================
   UGREEN page · Rev8
   The hero is the experience: one desk, one camera, one key light (upper left).
   - objects are placed by _src/pages/ugreen.mjs in world centimetres and projected for that camera,
     so foot lines, scale and contact shadows agree; the desk surface is a baked render for the same camera
   - two compositions: .c-d (tablet / desktop) and .c-m (phones, max-width 760px)
   - only transform / opacity / filter(brightness) change; the cables are drawn by ugreen.js
   - the set is a photograph of one desk: it is not mirrored in RTL (direction: ltr inside the set)
   ===================================================================== */
.ug-page {
  --ug-g: #19c26a; --ug-g-deep: #007934; --ug-g-soft: #8fe3b4;
  --ug-ease-settle: cubic-bezier(.16, 1, .3, 1);
  --ug-ease-move: cubic-bezier(.65, 0, .35, 1);
  --ug-t-fb: 160ms; --ug-t-el: 600ms;
}

/* ---------- hero frame ---------- */
.ug-hero.ugx { padding-block: 0; background: #0a0c0b; overflow: clip; }
.ugx-top {
  --ar: var(--ar-d, .64); --bar-h: 112px; --pad-t: 104px; --pad-b: 28px;
  --wrap-s: max(var(--gutter), calc((100vw - var(--container)) / 2));
  position: relative; display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); column-gap: clamp(24px, 3.2vw, 64px); align-items: center;
  min-block-size: clamp(620px, 100svh, 1080px); box-sizing: border-box;
  padding-block: var(--pad-t) var(--pad-b);
  padding-inline: var(--wrap-s) max(var(--gutter), calc((100vw - var(--container)) / 2 - 12vw));
}
.ugx-wrap { display: contents; }
.ugx-copy { position: relative; z-index: 3; min-inline-size: 0; }
.ugx-copy .badge.lk-ug { margin-block: var(--s5) var(--s5); }
.ugx-copy .h1 { margin-block-end: var(--s5); text-wrap: balance; }
.ugx-copy .h1 em { font-style: normal; color: var(--ug-bright); }
.ugx-copy .lead { max-inline-size: 36ch; }
.ugx-copy .hero-ctas { margin-block-start: var(--s6); }
.ug-hero .ug-facts { margin-block-start: 0; }

/* ---------- scene column: set + use bar ---------- */
.ugx-scene { --sw: min(100%, calc((min(100svh, 1080px) - var(--pad-t) - var(--pad-b) - var(--bar-h) - 10px) / var(--ar)), 1480px);
  position: relative; z-index: 1; display: grid; justify-items: end; align-content: center; gap: 10px; min-inline-size: 0; }
.ugx-set { position: relative; inline-size: var(--sw); aspect-ratio: 1 / var(--ar); direction: ltr; transition: opacity 500ms linear; }
.ugx-bar { position: relative; z-index: 4; inline-size: var(--sw); min-block-size: var(--bar-h); box-sizing: border-box; padding-inline: 1.5%; }

/* wall light, desk, shadows: painted once */
.ugx-wall { position: absolute; inset: -70% -90% 8% -90%; pointer-events: none;
  background:
    radial-gradient(34% 52% at 50% 78%, rgb(222 232 226 / .075), rgb(170 190 180 / .028) 55%, transparent 100%),
    radial-gradient(50% 60% at 46% 82%, rgb(25 194 106 / .045), transparent 70%); }
.ugx-desk { position: absolute; max-inline-size: none; left: calc(var(--dl) * 1%); top: calc(var(--dt) * 1%); inline-size: calc(var(--dw) * 1%); block-size: calc(var(--dh) * 1%); pointer-events: none; user-select: none; }
.ugx-sh { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; }
.c-m { display: none !important; }

/* objects */
.ugx-o {
  position: absolute; z-index: 2; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  inline-size: calc(var(--w) * 1%); block-size: calc(var(--h) * 1%);
  padding: 0; border: 0; margin: 0; background: none; color: inherit; font: inherit; cursor: default; -webkit-tap-highlight-color: transparent;
  transition: filter 520ms var(--ug-ease-settle), transform 520ms var(--ug-ease-settle);
}
.ugx-o > svg, .ugx-o > img { display: block; inline-size: 100%; block-size: 100%; }
.ugx-o > img { object-fit: contain; }
.ugx-o:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 8px; }
.ugx-o::after { content: ""; position: absolute; left: 50%; top: 50%; inline-size: max(100%, 32px); block-size: max(100%, 32px); transform: translate(-50%, -50%); }
.ugx[data-stage="done"] .ugx-o { cursor: pointer; }
.ugx-cable { position: absolute; inset: 0; z-index: 2; inline-size: 100%; block-size: 100%; overflow: visible; pointer-events: none; transition: opacity 520ms var(--ug-ease-settle); }
.ugx-fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

/* screens: off = dark glass; on = generic wallpaper (no brand mark on generic devices) */
.ugx-dev .on { opacity: 0; transition: opacity 1100ms var(--ug-ease-settle); }
.ugx-dev .files { opacity: 0; transition: opacity 700ms var(--ug-ease-settle); }
.ugx-dev .ring { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms var(--ug-ease-settle) 200ms; }
.o-lap .on { opacity: .82; }
.ugx:is(.s-all, .s-link) .o-lap .on { opacity: 1; }
.ugx:is(.s-all, .s-mon) .o-mon .on { opacity: 1; }
.ugx:is(.s-all, .s-nas) .o-lap .files { opacity: 1; }
.ugx:is(.s-all, .s-ph) .o-ph .on { opacity: 1; }
.ugx:is(.s-all, .s-ph) .o-ph .ring { stroke-dashoffset: 0; }
/* NAS status lights: steady once on */
.ugx-led { position: absolute; inline-size: 2.6%; block-size: 4.2%; translate: -50% -50%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, #f4fff8 0 26%, rgb(100 236 160 / .55) 46%, rgb(25 194 106 / 0) 100%);
  transition: opacity 500ms linear calc(var(--i) * 90ms); }
.ugx:is(.s-all, .s-nas) .ugx-led { opacity: 1; }

/* the monitor's light on the desk */
.ugx-glow { position: absolute; z-index: 1; left: calc(var(--gx) * 1%); top: calc(var(--gy) * 1%); inline-size: 62%; aspect-ratio: 4 / 1; translate: -50% -50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgb(46 190 120 / .16), rgb(46 190 120 / .05) 55%, transparent); transition: opacity 1400ms var(--ug-ease-settle); }
.ugx:is(.s-all, .s-mon) .ugx-glow { opacity: 1; }
@media (max-width: 760px) and (not (max-height: 520px)) { .ugx-glow { left: calc(var(--mgx) * 1%); top: calc(var(--mgy) * 1%); inline-size: 80%; } }

/* the room light comes up once at the start */
.ugx-dim { position: absolute; inset: -60% -90% -20%; z-index: 5; background: #060807; opacity: 0; pointer-events: none; transition: opacity 1500ms cubic-bezier(.3, 0, .2, 1); }
.ugx.s-dark .ugx-dim { opacity: .74; }
.js .ugx.s-all:not(.ready) .ugx-set { opacity: 0; }

/* cables (paths written by ugreen.js) */
.ugx-c-sh { fill: none; stroke: #000; stroke-linecap: round; stroke-linejoin: round; }
.ugx-c-b { fill: none; stroke: #1c2023; stroke-linecap: round; stroke-linejoin: round; }
.ugx-c-h { fill: none; stroke: #6c767d; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.ugx-c-p { fill: none; stroke: #9fe9c3; stroke-linecap: round; opacity: 0; stroke-dasharray: .1 1.2; stroke-dashoffset: .1; }
.ugx-c-p.go { animation: ugx-pulse var(--dur, 900ms) var(--ug-ease-move) 1 forwards; }
@keyframes ugx-pulse { 0% { stroke-dashoffset: .1; opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { stroke-dashoffset: -1.05; opacity: 0; } }
.ugx-plug-b { fill: none; stroke: #8b939a; stroke-linecap: round; }
.ugx-plug-h { fill: none; stroke: #e4e9ec; stroke-linecap: round; opacity: .75; }
.ugx-plug-t { fill: none; stroke: #c9cfd3; stroke-linecap: butt; }
.ugx-spark { position: absolute; inline-size: 34px; block-size: 34px; margin: -17px 0 0 -17px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(222 255 236 / .9), rgb(61 220 139 / .35) 45%, rgb(25 194 106 / 0) 100%); opacity: 0; animation: ugx-spark 900ms var(--ug-ease-settle) 1 forwards; }
@keyframes ugx-spark { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }

/* end state: choosing a use keeps related objects in the light */
.ugx[data-cat] .ugx-o:not(.hl) { filter: brightness(.36) saturate(.7); }
.ugx[data-cat] .ugx-cable:not(.hl) { opacity: .3; }
/* highlighted objects stay on the desk: light, not lift */
.ugx-tag { position: absolute; inset-block-end: calc(100% + 6px); left: 50%; translate: -50% 0; z-index: 6; white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: rgb(9 11 11 / .86); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); color: #e9f5ee; font-size: .75rem; line-height: 1.35; opacity: 0; transition: opacity 260ms linear; pointer-events: none; }
:root[dir="rtl"] .ugx-tag { direction: rtl; }
.ugx[data-stage="done"] :is(.ugx-o.hl, .ugx-o:focus-visible) .ugx-tag { opacity: 1; }

/* ---------- use bar ---------- */
.ugx-play { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-block-size: 44px; }
.ugx-status { margin: 0; font-size: .92rem; color: var(--ug-g-soft); opacity: 0; transition: opacity 260ms linear; }
.ugx-status.on { opacity: 1; }
.ugx-status::before { content: ""; display: inline-block; inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--ug-g); margin-inline-end: 10px; vertical-align: .12em; }
.ugx[data-stage="done"] .ugx-play { display: none; }
.ugx-skip { min-block-size: 44px; padding: 8px 20px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .06); color: var(--on-ink); font: inherit; font-size: .88rem; cursor: pointer; transition: background-color var(--ug-t-fb) linear, border-color var(--ug-t-fb) linear, transform var(--ug-t-fb) var(--ug-ease-settle); }
.ugx-skip[hidden] { display: none; }
.ugx-discover { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: center; opacity: 0; transform: translateY(8px); transition: opacity var(--ug-t-el) var(--ug-ease-settle), transform var(--ug-t-el) var(--ug-ease-settle); }
.ugx-discover.in { opacity: 1; transform: none; }
.ugx-discover[hidden] { display: none; }
.ugx-dh { grid-column: 1 / -1; margin: 0; font-size: .8rem; font-weight: 600; color: var(--on-ink-3); line-height: 1.4; }
:root[lang="en"] .ugx-dh { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.ugx-chips { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1; }
.ugx-chip { min-block-size: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .15); background: rgb(255 255 255 / .03); color: var(--on-ink-2); font: inherit; font-size: .9rem; cursor: pointer; transition: background-color var(--ug-t-fb) linear, color var(--ug-t-fb) linear, border-color var(--ug-t-fb) linear, transform var(--ug-t-fb) var(--ug-ease-settle); }
.ugx-chip:active { transform: scale(.97); }
.ugx-chip[aria-pressed="true"] { background: rgb(25 194 106 / .14); border-color: var(--ug-g); color: #fff; }
.ugx-replay { grid-column: 2; grid-row: 2; display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; padding: 8px 16px; border-radius: 999px; border: 0; background: none; color: var(--on-ink-2); font: inherit; font-size: .88rem; cursor: pointer; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); transition: color var(--ug-t-fb) linear, box-shadow var(--ug-t-fb) linear, background-color var(--ug-t-fb) linear, transform var(--ug-t-fb) var(--ug-ease-settle); }
.ugx-replay .ic { inline-size: 18px; block-size: 18px; flex: none; }
.ugx-desc { grid-column: 1 / -1; min-block-size: 3.4em; padding-inline-start: 12px; border-inline-start: 2px solid rgb(25 194 106 / .45); }
.ugx-desc p { margin: 0; transition: opacity 180ms linear; }
.ugx-desc.swap p { opacity: 0; }
.ugx-desc-t { color: var(--on-ink); font-size: .95rem; line-height: 1.7; }
.ugx-desc-k { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-block-start: 6px !important; color: var(--on-ink-3); font-size: .82rem; }
.ugx-desc-k:empty { display: none; }
.ugx-cat { position: relative; display: inline-flex; align-items: center; min-block-size: 32px; padding: 2px 11px; border: 0; border-radius: 999px; background: rgb(255 255 255 / .07); color: var(--on-ink-2); font: inherit; font-size: .82rem; cursor: pointer; transition: background-color var(--ug-t-fb), color var(--ug-t-fb); }
.ugx-cat::before { content: ""; position: absolute; inset: -6px -2px; }


/* ---------- tablet portrait and narrow windows: copy above, desk below ---------- */
@media (max-width: 1099px) {
  .ugx-top { grid-template-columns: minmax(0, 1fr); row-gap: 28px; min-block-size: 0; --pad-t: 112px; --pad-b: 24px; padding-inline: var(--gutter); }
  .ugx-copy { max-inline-size: 640px; }
  .ugx-scene { --sw: min(100%, 900px); justify-items: center; }
}
/* landscape tablets / short laptops (e.g. 1024 × 600): side by side again */
@media (max-width: 1099px) and (min-width: 900px) and (max-height: 760px) and (orientation: landscape) {
  .ugx-top { grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); min-block-size: clamp(560px, 100svh, 760px); --pad-t: 92px; --pad-b: 16px; --bar-h: 104px; }
  .ugx-scene { --sw: min(100%, calc((100svh - var(--pad-t) - var(--pad-b) - var(--bar-h) - 10px) / var(--ar))); justify-items: end; }
  .ugx-copy .lead { font-size: 1rem; }
}
/* ---------- phones: their own composition ---------- */
@media (max-width: 760px) {
  .c-d { display: none !important; }
  .c-m { display: block !important; }
  .ugx-top { --ar: var(--ar-m, 1.04); --pad-t: 96px; --pad-b: 20px; row-gap: 18px; }
  .ugx-o { left: calc(var(--mx) * 1%); top: calc(var(--my) * 1%); inline-size: calc(var(--mw) * 1%); block-size: calc(var(--mh) * 1%); }
  .ugx-scene { --sw: 100%; }
  .ugx-set { inline-size: calc(100% + 2 * var(--gutter)); max-inline-size: 600px; margin-inline: calc(-1 * var(--gutter)); }
  .ugx-bar { inline-size: 100%; min-block-size: 200px; padding-inline: 0; }
  .ugx-copy .hero-ctas { margin-block-start: 22px; }
  .ugx-chips { gap: 6px; }
  .ugx-chip { padding-inline: 14px; }
  .ugx-discover { grid-template-columns: minmax(0, 1fr); }
  .ugx-replay { grid-column: 1; grid-row: auto; justify-self: start; }
}
/* landscape phones / very short screens: side by side, compact copy */
@media (max-height: 520px) and (min-width: 600px) {
  .c-d { display: block !important; }
  .c-m { display: none !important; }
  .ugx-top { --ar: var(--ar-d, .64); grid-template-columns: minmax(230px, 290px) minmax(0, 1fr); --pad-t: 84px; --pad-b: 16px; --bar-h: 96px; min-block-size: 0; padding-inline: var(--gutter); }
  .ugx-o { left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); inline-size: calc(var(--w) * 1%); block-size: calc(var(--h) * 1%); }
  .ugx-scene { --sw: min(100%, calc((100svh - 30px) / var(--ar))); justify-items: end; }
  .ugx-set { inline-size: var(--sw); margin-inline: 0; }
  .ugx-bar { inline-size: var(--sw); min-block-size: 0; }
  .ugx-copy .lead { display: none; }
  .ugx-copy .h1 { font-size: 1.9rem; }
  .ugx-copy .hero-ctas { margin-block-start: 14px; }
  .ugx-copy .badge.lk-ug { margin-block: 10px 12px; }
}

/* reduced motion: states change without travel */
@media (prefers-reduced-motion: reduce) {
  .ugx-c-p, .ugx-spark { display: none; }
  .ugx-o, .ugx-dev .on, .ugx-dev .files, .ugx-dev .ring, .ugx-led, .ugx-dim, .ugx-discover, .ugx-set { transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
:root[data-motion="reduce"] :is(.ugx-c-p, .ugx-spark) { display: none; }
:root[data-motion="reduce"] :is(.ugx-o, .ugx-dev .on, .ugx-dev .files, .ugx-dev .ring, .ugx-led, .ugx-dim, .ugx-discover, .ugx-set) { transition-duration: 1ms !important; transition-delay: 0ms !important; }
/* off-screen: CSS animations hold still with the sequence */
.ugx.paused :is(.ugx-c-p, .ugx-spark) { animation-play-state: paused; }

/* ---------- product categories: captions without prototype labels ---------- */
.cx-cap { justify-content: flex-start; }

/* ---------- timeline (UGREEN reference) ---------- */
.tl-ug { --tl-ac: var(--ug-g); --tl-glow: rgb(25 194 106 / .14); }
/* Final: the progress line carries the same soft light as the IQAir timeline (the full-strength 12 px accent shadow read as a glow) */
.tl-ug .tl-fill { box-shadow: 0 0 12px rgb(25 194 106 / .45); }
.ug-hist .tl-item h3 { font-size: 1.22rem; }

/* phones: the scene follows the headline; the calls to action follow the scene */
@media (max-width: 760px) and (not (max-height: 520px)) {
  .ugx-copy { display: contents; }
  .ugx-copy > * { order: 1; }
  .ugx-scene { order: 2; }
  .ugx-copy > .hero-ctas { order: 3; margin-block-start: 4px; }
}

/* side-by-side layouts: the desk falls into shadow behind the copy */
@media (min-width: 1100px), (min-width: 900px) and (max-height: 760px) and (orientation: landscape), (max-height: 520px) and (min-width: 600px) {
  .ugx-desk.c-d { -webkit-mask-image: linear-gradient(to left, transparent 22%, #000 40%); mask-image: linear-gradient(to left, transparent 22%, #000 40%); }
  :root[dir="ltr"] .ugx-desk.c-d { -webkit-mask-image: linear-gradient(to right, transparent 22%, #000 40%); mask-image: linear-gradient(to right, transparent 22%, #000 40%); }
}

/* no-JS: keep the two title lines apart (proto only makes .mask-line a block under .js) */
.ug-hero .h1 .mask-line { display: block; }

/* =====================================================================
   Rev9 · photography pass (supporting sections only; hero + timeline unchanged)
   ===================================================================== */
/* panoramic technology band (banner_no_text): desktop = whole panorama, phones (<= 760px) = own crop of the product cluster.
   The image is only 8% taller than the band (whisper of parallax, data-par .02, never opens a gap) so the floating phone is not cut. */
.ug-pano { background: #9fbbe0; }
.ug-pano picture { position: absolute; inset: 0; display: block; }
.ug-pano img { block-size: 108%; inset-block-start: -4%; object-position: 50% 72%; }
.ug-pano figcaption { inset-block-end: 18px; padding: 4px 12px; border-radius: 999px; background: rgb(8 10 9 / .66); color: #fff; line-height: 1.5; }
@media (max-width: 760px) {
  .ug-pano { block-size: min(82vw, 560px); }
  .ug-pano img { object-position: 50% 50%; }
  .ug-pano figcaption { inset-block: 12px auto; }
}

/* product-category explorer: one stage proportion so every photo is cropped on purpose
   (16:9 tablet/desktop, 4:3 phones, each with its own file); panels fit the stage */
.ug-page .cx-stage { min-block-size: 0; inline-size: 100%; aspect-ratio: 16 / 9; max-block-size: 600px; align-self: start; }
.ug-page .cx-panel { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.ug-page .cx-panel picture { position: absolute; inset: 0; display: block; overflow: hidden; }
.ug-page .cx-panel img { min-block-size: 0; min-inline-size: 0; }
/* product shots on a plain background: contain, natural proportions, on a surface of the photo's own colour */
.ug-page .cx-panel.contain { background: var(--surf); }
.ug-page .cx-panel.contain img { padding: clamp(18px, 5%, 44px); box-sizing: border-box; }
/* caption: a soft scrim in the photo's own key under the caption (dark photos: white text; light photos: dark text), AA checked */
.ug-page .cx-cap { z-index: 1; }
.ug-page .cx-panel:not(.contain)::after { content: ""; position: absolute; inset: auto 0 0; block-size: 46%; pointer-events: none;
  background: linear-gradient(to top, rgb(6 8 7 / .74), rgb(6 8 7 / .52) 30%, rgb(6 8 7 / .16) 70%, rgb(6 8 7 / 0)); }
.ug-page .cx-panel.light:not(.contain)::after { background: linear-gradient(to top, rgb(248 250 252 / .82), rgb(248 250 252 / .4) 45%, rgb(248 250 252 / 0)); }
.ug-page .cx-panel.light .cx-cap b { color: #111614; }
@media (max-width: 720px) {
  .ug-page .cx-stage { aspect-ratio: 4 / 3; max-block-size: none; border-radius: 20px; }
  /* phones: a compact label (same pill as the panorama caption) instead of a headline over the photo */
  .ug-page .cx-panel::after { display: none; }
  .ug-page .cx-cap { inset-inline: 10px; inset-block-end: 10px; }
  .ug-page .cx-cap b { font-size: .85rem; line-height: 1.45; white-space: nowrap; padding: 3px 11px; border-radius: 999px; background: rgb(8 10 9 / .72); }
  .ug-page .cx-panel.light .cx-cap b { background: rgb(250 251 252 / .9); box-shadow: inset 0 0 0 1px rgb(17 22 20 / .1); }
  /* product shots: the bottom strip of the plain surface is kept for the caption */
  .ug-page .cx-panel.contain img { padding: 14px 14px 42px; }
}

/* =====================================================================
   Final design candidate · interaction states and small layout fixes (worker "brands")
   - hover only where a pointer can hover (no sticky hover after a tap); 160 ms feedback, no glow, no bounce
   - pressed = a slight press (scale .97) or a deeper fill; selected = aria-pressed / aria-selected styles above
   ===================================================================== */
@media (hover: hover) {
  .ugx-skip:hover { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .32); }
  .ugx-chip:hover { color: var(--on-ink); border-color: rgb(25 194 106 / .55); }
  .ugx-chip[aria-pressed="true"]:hover { background: rgb(25 194 106 / .2); }
  .ugx-replay:hover { color: var(--on-ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .34); }
  .ugx-cat:hover { background: rgb(25 194 106 / .18); color: #fff; }
  /* a mouse pointer over a desk object shows its name (touch: the tap selects it, which shows the name too) */
  .ugx[data-stage="done"] .ugx-o:hover .ugx-tag { opacity: 1; }
  .ug-page .cx-tab:not([aria-selected="true"]):hover { background: rgb(255 255 255 / .035); color: var(--on-ink); }
}
.ugx-skip:active, .ugx-replay:active { transform: scale(.97); }
.ugx-skip:active { background: rgb(255 255 255 / .16); }
.ugx-replay:active { background: rgb(255 255 255 / .06); }
.ugx-cat { transition: background-color var(--ug-t-fb) linear, color var(--ug-t-fb) linear, transform var(--ug-t-fb) var(--ug-ease-settle); }
.ugx-cat:active { transform: scale(.97); background: rgb(25 194 106 / .26); }
.ugx-cat:focus-visible { outline-offset: 2px; border-radius: 999px; }
.ugx-chip:focus-visible, .ugx-skip:focus-visible, .ugx-replay:focus-visible { border-radius: 999px; }
/* product tabs: feedback in the same 160 ms as the rest of the page (the shared 280 ms felt late next to the photo swap) */
.ug-page .cx-tab { transition: background-color var(--ug-t-fb) linear, color var(--ug-t-fb) linear; }
.ug-page .cx-tab:active { background: var(--ink-3); }

/* phones: the copy column dissolves into the hero grid, where the LTR lockup box would stretch and push the logo to the
   left edge in Persian/Arabic; keep it at the reading start like the headline */
@media (max-width: 760px) and (not (max-height: 520px)) {
  .ugx-copy > .lk-ug { justify-self: start; }
}
/* hero calls to action: never squeeze a button below its label (the shared flex: 1 rule let the label overflow and be
   clipped in narrow side-by-side columns, e.g. 667 x 375 and 200 % zoom); they wrap to a second row instead */
@media (max-width: 720px) { .ugx-copy .hero-ctas .btn { flex: 1 1 auto; justify-content: center; } }
/* D13 (QA): the Skip button wrapped to two lines at 320 px (fa, zh-cn); it keeps one line, the status text wraps instead */
.ugx-skip { white-space: nowrap; flex: none; }
.ugx-status { min-inline-size: 0; }

/* =====================================================================
   Rev10 · targeted visual corrections (intro photo, chargers, cables, hubs & docks, shop CTA)
   ===================================================================== */
/* intro: product photograph (power bank + retractable cable charging a laptop) in its own warm studio light */
.ug-page .ug10-intro { background: #2a241e; box-shadow: 0 30px 60px -36px rgb(0 0 0 / .8), inset 0 0 0 1px rgb(255 255 255 / .06); }
.ug-page .ug10-intro img { object-position: 50% 50%; }

/* explorer · shared: SVG detailing lives in the image's pixel space and follows the photo's settle transform */
.ug-page .cx-fx { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; pointer-events: none; overflow: visible;
  transform: scale(1.04); transition: transform 1.4s var(--ease); }
.ug-page .cx-panel.is-on .cx-fx { transform: none; }
.ug-page .cx-fx .ln { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s var(--ease); transition-delay: calc(.35s + var(--i, 0) * .32s); }
.ug-page .cx-panel.is-on .cx-fx .ln { stroke-dashoffset: 0; }
.ug-page .cx-fx .nd { transition: opacity .6s linear; transition-delay: .2s; opacity: 0; }
.ug-page .cx-panel.is-on .cx-fx .nd { opacity: 1; }
.ug-page .fx-m { display: none; }
@media (max-width: 720px) { .ug-page .fx-d { display: none; } .ug-page .fx-m { display: block; } .ug-page .fx-m .nd.j { display: none; } }

/* hubs & docks · connected workspace: the Revodok line-up on its studio floor; a quiet bus with one node per product */
.ug-page .cx-hub { background: #000; }
.ug-page .cx-hub .grid path { stroke: rgb(255 255 255 / .05); stroke-width: 2; }
.ug-page .cx-hub .ln { stroke: #19c26a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .62; }
.ug-page .cx-hub .ln.up { opacity: .4; }
.ug-page .cx-hub .nd { fill: #050806; stroke: #19c26a; stroke-width: 3; }
.ug-page .cx-hub .nd.j { fill: #19c26a; stroke: #050806; stroke-width: 5; }

@media (prefers-reduced-motion: reduce) {
  .ug-page .cx-fx, .ug-page .cx-fx .ln, .ug-page .cx-fx .nd { transition: none; }
}
:root[data-motion="reduce"] .ug-page :is(.cx-fx, .cx-fx .ln, .cx-fx .nd) { transition: none !important; }
:root:not(.js) .ug-page .cx-fx .ln { stroke-dashoffset: 0; }
:root:not(.js) .ug-page .cx-fx .nd { opacity: 1; }

/* shop CTA: same green and wording; the gradient now runs dark under the copy (RTL: right, LTR: left) for AA contrast,
   lighter on the button side; PCB detailing is masked away from the copy */
.ug-page .ug-cta { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(var(--cta-a, 240deg), #00672c, #00762f 48%, #00873d 80%, #0aa04f); }
:root[dir="ltr"] .ug-page .ug-cta { --cta-a: 120deg; }
.ug-page .ug-cta > :not(.ug-cta-fx) { position: relative; z-index: 1; }
.ug-page .ug-cta p:not(.eyebrow) { opacity: 1; color: #fff; }
.ug-cta-fx { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, #000 0 34%, transparent 58%); mask-image: linear-gradient(to right, #000 0 34%, transparent 58%); }
:root[dir="ltr"] .ug-cta-fx { transform: scaleX(-1); }
.ug-cta-fx .grid { stroke: rgb(255 255 255 / .06); stroke-width: 1; }
.ug-cta-fx pattern path { fill: none; stroke: rgb(255 255 255 / .07); stroke-width: 1; }
.ug-cta-fx .tr path { fill: none; stroke: rgb(255 255 255 / .17); stroke-width: 1.5; stroke-linejoin: round; }
.ug-cta-fx .via { fill: #00733a; stroke: rgb(255 255 255 / .34); stroke-width: 1.5; }
.ug-cta-fx .pads rect { fill: rgb(216 255 233 / .16); }
.ug-cta-fx .dots circle { fill: rgb(255 255 255 / .2); }
.ug-cta-fx .on path { fill: none; stroke: #d8ffe9; stroke-width: 1.8; stroke-linejoin: round; opacity: .6; stroke-dasharray: .18 1; stroke-dashoffset: 1.18; }
.js .ug-cta.in .ug-cta-fx .on path { transition: stroke-dashoffset 2.4s var(--ease); transition-delay: calc(.5s + var(--i, 0) * .45s); stroke-dashoffset: 0; }
:root:not(.js) .ug-cta-fx .on path { stroke-dasharray: none; stroke-dashoffset: 0; opacity: .35; }
@media (prefers-reduced-motion: reduce) { .ug-cta-fx .on path { stroke-dasharray: none; stroke-dashoffset: 0; opacity: .35; transition: none !important; } }
:root[data-motion="reduce"] .ug-cta-fx .on path { stroke-dasharray: none; stroke-dashoffset: 0; opacity: .35; transition: none !important; }
@media (max-width: 720px) {
  .ug-page .ug-cta, :root[dir="ltr"] .ug-page .ug-cta { --cta-a: 180deg; }
  .ug-cta-fx { -webkit-mask-image: linear-gradient(to top, #000 0 14%, transparent 30%), radial-gradient(56% 30% at 0 0, #000, transparent);
    mask-image: linear-gradient(to top, #000 0 14%, transparent 30%), radial-gradient(56% 30% at 0 0, #000, transparent); }
}
@media (max-width: 720px) {
  /* phones: the 3-charger crop starts right at the 45 W charger's plug, so only the top edge dissolves */
}
