/* Stream24 product illustrations and interactive explainers.
   Loaded only on the pages that use them (OmniDownload, Studio, Features and feature pages). */

/* ── OmniDownload walkthrough ───────────────────────────────────────────── */
.s24-flow { margin-inline: auto; max-width: 52rem; }
.s24-flow figcaption { margin-top: 1rem; text-align: center; font-size: 0.75rem; color: var(--color-slate-dim); }

.s24-flow-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.s24-flow-step {
  position: relative; display: inline-flex; align-items: center; gap: 0.55rem; overflow: hidden;
  border-radius: 9999px; border: 1px solid var(--color-border-strong); padding: 0.5rem 1rem 0.5rem 0.5rem; min-height: 2.5rem;
  font-size: 0.875rem; font-weight: 600; color: var(--color-slate); background: var(--color-surface);
  transition: color var(--s24-dur-2) var(--s24-ease), border-color var(--s24-dur-2) var(--s24-ease), background-color var(--s24-dur-2) var(--s24-ease);
}
.s24-flow-step-n {
  display: inline-flex; width: 1.5rem; height: 1.5rem; align-items: center; justify-content: center; border-radius: 50%;
  font-size: 0.75rem; background: var(--color-surface-2); color: var(--color-slate);
  transition: background-color var(--s24-dur-2) var(--s24-ease), color var(--s24-dur-2) var(--s24-ease);
}
.s24-flow-step-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--s24-green); transform: scaleX(0); transform-origin: left; }
.s24-flow-step[aria-pressed="true"] { color: var(--color-cloud); border-color: var(--s24-green-line); background: var(--s24-green-wash); }
.s24-flow-step[aria-pressed="true"] .s24-flow-step-n { background: var(--s24-green); color: #06281f; }
@media (hover: hover) { .s24-flow-step:hover { color: var(--color-cloud); border-color: var(--s24-green-line); } }
.s24-flow[data-playing="true"] .s24-flow-step[aria-pressed="true"] .s24-flow-step-bar { animation: s24-flow-bar var(--flow-ms, 3000ms) linear forwards; }
@keyframes s24-flow-bar { to { transform: scaleX(1); } }

/* The app window keeps its own light look in both site themes, as the real app does. */
.s24-flow-window {
  --a-bg: #ffffff; --a-side: #ececee; --a-line: #e1e2e6; --a-text: #1b1c21; --a-mute: #5b5e6b; --a-acc: #0f6a50; --a-wash: #e3f1ec;
  display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); overflow: hidden; border-radius: 12px; min-height: 22rem;
  background: var(--a-bg); color: var(--a-text); text-align: left; line-height: 1.35;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif; font-size: 0.78rem;
  box-shadow: 0 0 0 1px rgba(15, 17, 23, 0.1), 0 40px 80px -48px rgba(15, 17, 23, 0.55);
}
.s24-flow-side { background: var(--a-side); padding: 0.75rem 0.7rem 1rem; border-right: 1px solid var(--a-line); }
.s24-flow-dots { display: flex; gap: 0.35rem; margin-bottom: 1rem; }
.s24-flow-dots i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #d3d4d9; }
.s24-flow-brand { display: flex; align-items: center; gap: 0.5rem; }
.s24-flow-brand b { display: block; font-size: 0.78rem; font-weight: 600; }
.s24-flow-brand small { display: block; color: var(--a-mute); font-size: 0.65rem; }
.s24-flow-logo { display: inline-flex; width: 1.6rem; height: 1.6rem; align-items: center; justify-content: center; border-radius: 7px; background: var(--a-acc); color: #fff; }
.s24-flow-engine { display: flex; align-items: center; gap: 0.35rem; margin: 1rem 0 0.25rem; font-size: 0.68rem; color: var(--a-mute); }
.s24-flow-engine i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--a-acc); }
.s24-flow-engine em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--a-acc); }
.s24-flow-group { margin: 1rem 0 0.3rem 0.4rem; font-size: 0.65rem; color: var(--a-mute); }
.s24-flow-side ul { list-style: none; margin: 0; padding: 0; }
.s24-flow-side li { display: flex; align-items: center; gap: 0.5rem; border-radius: 7px; padding: 0.42rem 0.5rem; color: #3a3c45; }
.s24-flow-side li.is-on { background: #d9dfdc; color: var(--a-acc); font-weight: 600; }
.s24-flow-main { display: flex; min-width: 0; flex-direction: column; }
.s24-flow-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 1rem; border-bottom: 1px solid var(--a-line); }
.s24-flow-head b { font-size: 0.82rem; font-weight: 600; }
.s24-flow-chips { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.68rem; color: var(--a-acc); }
.s24-flow-chips span { color: var(--a-acc); }
.s24-flow-chips span + span { color: var(--a-mute); }
.s24-flow-new { border-radius: 6px; background: var(--a-acc); padding: 0.28rem 0.6rem; color: #fff !important; font-weight: 600; }
.s24-flow-body { flex: 1; padding: 1.1rem 1rem; }
.s24-flow-body small { color: var(--a-mute); font-size: 0.68rem; }
.s24-flow-title { margin: 0.2rem 0 0.7rem; font-family: inherit; font-size: 1.15rem; font-weight: 650; letter-spacing: -0.02em; color: var(--a-text); }
.s24-flow-url { display: flex; align-items: center; gap: 0.6rem; height: 2.4rem; border: 1px solid var(--a-line); border-radius: 8px; padding-left: 0.65rem; overflow: hidden; }
.s24-flow-url-icon { color: var(--a-mute); display: inline-flex; }
.s24-flow-typed, .s24-flow-typed-done { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--a-text); }
.s24-flow-typed span { display: inline-block; max-width: 100%; overflow: hidden; vertical-align: bottom; white-space: nowrap; border-right: 1.5px solid var(--a-acc); }
.s24-flow-btn { display: inline-flex; align-self: stretch; align-items: center; background: var(--a-acc); padding: 0 1rem; color: #fff; font-weight: 600; font-size: 0.74rem; }
.s24-flow-url .s24-flow-btn { margin-left: auto; }
.s24-flow-btn.is-done { background: #d9dfdc; color: var(--a-acc); }
.s24-flow-tabs { display: inline-flex; flex-wrap: wrap; gap: 0.1rem; margin: 0.8rem 0; border-radius: 8px; background: #eeeff2; padding: 0.15rem; color: var(--a-mute); font-size: 0.7rem; }
.s24-flow-tabs span { border-radius: 6px; padding: 0.22rem 0.55rem; }
.s24-flow-tabs span:first-child { background: #fff; color: var(--a-text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.s24-flow[data-state="4"] .s24-flow-tabs span:first-child { background: transparent; color: var(--a-mute); box-shadow: none; }
.s24-flow[data-state="4"] .s24-flow-tabs span[data-tab="done"] { background: #fff; color: var(--a-text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

.s24-flow-result, .s24-flow-row { display: flex; gap: 0.85rem; align-items: flex-start; border: 1px solid var(--a-line); border-radius: 10px; padding: 0.75rem; }
.s24-flow-result img { width: 8.5rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; flex: none; }
.s24-flow-result-body, .s24-flow-row-body { display: flex; min-width: 0; flex-direction: column; gap: 0.25rem; flex: 1; }
.s24-flow-result-body b, .s24-flow-row-body b { font-size: 0.82rem; font-weight: 600; }
.s24-flow-result-body > span, .s24-flow-row-body > span { color: var(--a-mute); font-size: 0.7rem; }
.s24-flow-row-body .is-ok { color: var(--a-acc); font-weight: 600; }
.s24-flow-q { display: flex; gap: 0.35rem; margin-top: 0.3rem; }
.s24-flow-q span { border: 1px solid var(--a-line); border-radius: 6px; padding: 0.2rem 0.55rem; font-size: 0.7rem; color: #3a3c45; }
.s24-flow-q span.is-on { border-color: var(--a-acc); background: var(--a-wash); color: var(--a-acc); font-weight: 600; }
.s24-flow-actions { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.4rem; }
.s24-flow-actions .s24-flow-btn { align-self: auto; border-radius: 6px; padding: 0.38rem 0.9rem; }
.s24-flow-actions small { color: var(--a-mute); font-size: 0.64rem; }
.s24-flow-row { align-items: center; }
.s24-flow-row img { width: 6rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; flex: none; }
.s24-flow-bar { height: 5px; margin-top: 0.35rem; border-radius: 5px; background: #e7e8ec; overflow: hidden; }
.s24-flow-bar i { display: block; height: 100%; width: 100%; border-radius: 5px; background: var(--a-acc); transform-origin: left; transform: scaleX(0.2); }
.s24-flow-check { display: inline-flex; width: 1.5rem; height: 1.5rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--a-acc); color: #fff; flex: none; }

/* Which parts show in which state. Everything is in the DOM; this only toggles display. Each element says
   what its display is when shown through --d. */
.s24-flow [data-in] { display: none; }
.s24-flow-result, .s24-flow-row { --d: flex; }
.s24-flow-btn, .s24-flow-check { --d: inline-flex; }
.s24-flow-chips > span { --d: inline; }
.s24-flow[data-state="1"] [data-in~="1"], .s24-flow[data-state="2"] [data-in~="2"],
.s24-flow[data-state="3"] [data-in~="3"], .s24-flow[data-state="4"] [data-in~="4"] { display: var(--d, block); }

@media (prefers-reduced-motion: no-preference) {
  .s24-flow-result, .s24-flow-row { animation: s24-rise 480ms var(--s24-ease) both; }
  .s24-flow[data-state="1"] .s24-flow-typed span { animation: s24-typing 1.9s steps(38, end) both, s24-caret 0.8s step-end infinite; width: 0; }
  .s24-flow[data-state="3"] .s24-flow-bar i { animation: s24-bar-fill 2.2s var(--s24-ease-inout) forwards; }
  .s24-flow[data-state="1"] .s24-flow-btn[data-in~="1"] { animation: s24-press 0.5s ease 2.1s both; }
}
@keyframes s24-typing { from { width: 0; } to { width: 100%; } }
@keyframes s24-caret { 50% { border-color: transparent; } }
@keyframes s24-bar-fill { from { transform: scaleX(0.12); } to { transform: scaleX(1); } }
@keyframes s24-press { 40% { transform: scale(0.94); filter: brightness(0.92); } }
@media (prefers-reduced-motion: reduce) { .s24-flow[data-state="1"] .s24-flow-typed span { width: 100%; } .s24-flow[data-state="3"] .s24-flow-bar i { transform: scaleX(0.64); } }

@media (max-width: 640px) {
  .s24-flow-window { grid-template-columns: 1fr; min-height: 0; }
  .s24-flow-side { display: none; }
  .s24-flow-result { flex-direction: column; }
  .s24-flow-result img { width: 100%; }
  .s24-flow-chips span:not(.s24-flow-new):not([data-in]) { display: none; }
}

/* ── Explorer: tabs that change the visual, the heading, the text and the call to action ───────────── */
.s24-ex { margin-inline: auto; max-width: 72rem; }
.s24-ex-tabs {
  display: flex; gap: 0.4rem; margin-bottom: 1.5rem; overflow-x: auto; padding: 0.25rem; scroll-snap-type: x proximity;
  scrollbar-width: none; justify-content: center; flex-wrap: wrap;
}
.s24-ex-tabs::-webkit-scrollbar { display: none; }
.s24-ex-tab {
  flex: none; scroll-snap-align: center; min-height: 2.5rem; border-radius: 9999px; padding: 0.5rem 1.05rem;
  font-size: 0.875rem; font-weight: 600; color: var(--color-slate); border: 1px solid var(--color-border-strong); background: var(--color-surface);
  transition: color var(--s24-dur-2) var(--s24-ease), background-color var(--s24-dur-2) var(--s24-ease), border-color var(--s24-dur-2) var(--s24-ease), transform var(--s24-dur-2) var(--s24-ease);
}
.s24-ex-tab[aria-selected="true"] { color: var(--color-cloud); border-color: var(--s24-green-line); background: var(--s24-green-wash); box-shadow: inset 0 -2px 0 var(--s24-green); }
@media (hover: hover) { .s24-ex-tab:hover { color: var(--color-cloud); border-color: var(--s24-green-line); } }
@media (max-width: 767px) { .s24-ex-tabs { flex-wrap: nowrap; justify-content: flex-start; margin-inline: -1.5rem; padding-inline: 1.5rem; } }

.s24-ex-stage { display: grid; gap: 1.5rem; align-items: center; }
.s24-ex[data-mode="gallery"] .s24-ex-stage { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; }
@media (max-width: 899px) { .s24-ex[data-mode="gallery"] .s24-ex-stage { grid-template-columns: 1fr; gap: 1.5rem; } }

.s24-ex-visual { position: relative; min-width: 0; }
.s24-ex-vis img, .s24-ex-vis > div { width: 100%; }
.s24-ex-vis img {
  display: block; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(15, 17, 23, 0.12), 0 36px 70px -44px rgba(15, 17, 23, 0.55);
}
.s24-ex-vis:not([hidden]) { animation: s24-fade 520ms var(--s24-ease) both; }

/* Hotspot mode: the real screenshot with a spotlight ring on the part being explained. */
.s24-ex-shot { position: relative; overflow: hidden; border-radius: 12px; background: #0b0c10; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 90px -50px rgba(0, 0, 0, 0.8); }
.s24-ex-zoom { position: absolute; inset: 0; transform-origin: var(--ox, 50%) var(--oy, 50%); transform: scale(var(--z, 1)); transition: transform 800ms var(--s24-ease); }
.s24-ex-zoom img { display: block; width: 100%; height: 100%; object-fit: cover; }
.s24-ex-ring {
  position: absolute; left: var(--l); top: var(--t); width: var(--w); height: var(--h); border-radius: 9px;
  border: 2px solid var(--s24-green);
  box-shadow: 0 0 0 100vmax rgba(5, 6, 9, 0.5), 0 0 30px rgba(0, 200, 150, 0.55);
  transition: left 700ms var(--s24-ease), top 700ms var(--s24-ease), width 700ms var(--s24-ease), height 700ms var(--s24-ease);
}
.s24-ex-ring b {
  position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; border-radius: 8px; padding: 0.3rem 0.65rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.01em; color: #06281f; background: var(--s24-green);
  top: calc(100% + 0.55rem);
}
.s24-ex-ring[data-side="top"] b { top: auto; bottom: calc(100% + 0.55rem); }
.s24-ex-ring[data-side="inside"] b { top: 0.5rem; left: 0.6rem; transform: none; }
.s24-ex-ring[data-side="left"] b { top: 50%; left: auto; right: calc(100% + 0.55rem); transform: translateY(-50%); }
@media (prefers-reduced-motion: no-preference) {
  .s24-ex-ring { animation: s24-ring-pulse 2.6s ease-in-out infinite; }
}
@keyframes s24-ring-pulse { 50% { border-color: color-mix(in srgb, var(--s24-green) 55%, transparent); } }

.s24-ex-panels { min-width: 0; }
.s24-ex[data-mode="hotspot"] .s24-ex-panels { max-width: 46rem; margin-inline: auto; text-align: center; }
.s24-ex-panel { outline: none; }
.s24-ex-panel + .s24-ex-panel { margin-top: 2.5rem; }
.s24-ex.is-ready .s24-ex-panel + .s24-ex-panel { margin-top: 0; }
.s24-ex-panel:not([hidden]) { animation: s24-rise 480ms var(--s24-ease) both; }
.s24-ex-panel:focus-visible { outline: 2px solid var(--color-green); outline-offset: 8px; border-radius: 10px; }
.s24-ex-title { font-family: var(--font-syne); font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; color: var(--color-cloud); text-wrap: balance; }
.s24-ex-body { margin-top: 0.85rem; font-size: 1.0625rem; line-height: 1.65; color: var(--color-slate); }
.s24-ex-points { margin-top: 1.1rem; display: grid; gap: 0.55rem; list-style: none; padding: 0; }
.s24-ex-points li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; color: var(--color-cloud); opacity: 0.9; text-align: left; }
.s24-ex-points svg { margin-top: 0.25rem; }
.s24-ex[data-mode="hotspot"] .s24-ex-points { justify-content: center; justify-items: start; width: fit-content; margin-inline: auto; }
.s24-ex-cta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.s24-ex[data-mode="hotspot"] .s24-ex-cta { justify-content: center; }
.s24-ex-link { font-size: 0.9375rem; font-weight: 600; color: var(--color-link); }
.s24-ex-link:hover { text-decoration: underline; }

/* Gallery visuals: window captures keep their own shadow, opaque captures get a frame. */
.s24-ex-vis img { aspect-ratio: auto; object-fit: contain; object-position: center; border-radius: 0; box-shadow: none; max-height: 34rem; margin-inline: auto; width: auto; max-width: 100%; }
.s24-ex-vis img.is-opaque { border-radius: 14px; box-shadow: 0 0 0 1px rgba(15, 17, 23, 0.12), 0 36px 70px -44px rgba(15, 17, 23, 0.55); }
.s24-ex-vis { display: flex; justify-content: center; }
/* Live chat has no screenshot, so it is drawn with the same merged-feed idea the homepage carousel uses. */
.s24-chatmock { width: 100%; max-width: 26rem; margin-inline: auto; border-radius: 14px; padding: 1rem 1.1rem 1.2rem; color: #f0f0f5; background: linear-gradient(135deg, #303650, #222638 55%, color-mix(in srgb, #00c896 30%, #1a1e2e)); box-shadow: 0 36px 70px -44px rgba(15, 17, 23, 0.6); }
.s24-chatmock > div { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 0.6rem; font-size: 0.7rem; }
.s24-chatmock > div b { letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; opacity: 0.75; }
.s24-chatmock > div span { display: inline-flex; align-items: center; gap: 0.35rem; opacity: 0.6; }
.s24-chatmock > div i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-red, #ff4757); }
.s24-chatmock p { display: flex; align-items: center; gap: 0.5rem; margin: 0.75rem 0 0; }
.s24-chatmock p i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.s24-chatmock p span { height: 8px; border-radius: 9999px; background: rgba(240, 240, 245, 0.16); }

/* Switching tabs must not move the page: reserve the tallest panel's room. */
.s24-ex[data-mode="gallery"] .s24-ex-stage { min-height: 26rem; }
@media (max-width: 899px) { .s24-ex[data-mode="gallery"] .s24-ex-stage { min-height: 0; } }
.s24-ex[data-mode="hotspot"] .s24-ex-stage { gap: 2.25rem; }
.s24-ex[data-mode="hotspot"] .s24-ex-panels { min-height: 19rem; }
@media (max-width: 767px) { .s24-ex[data-mode="hotspot"] .s24-ex-panels { min-height: 0; } }
@media (max-width: 767px) { .s24-ex-ring b { font-size: 0.62rem; padding: 0.2rem 0.45rem; } }
