/* Home page: before / after Lynxbe comparison slider (lynxbe-platform.html, en/index.html) */
.lxb-ba {
  --ba-bg: #0b0d1a;
  --ba-text: #fff;
  --ba-muted: rgba(255, 255, 255, .7);
  --ba-border: rgba(255, 255, 255, .12);
  --ba-before-bg: #1b1918;
  --ba-paper: #f3efe6;
  --ba-paper-text: #2a2622;
  --ba-alert: #ef4444;
  --ba-after-bg: #120f2b;
  --ba-app-bg: #171b36;
  --ba-app-row: rgba(255, 255, 255, .05);
  --ba-accent: #7c3aed;
  --ba-accent-soft: #c4b5fd;
  --ba-ok: #10b981;
  position: relative;
  z-index: 1;
  padding: 96px 20px;
  overflow: hidden;
}

/* Beats light-theme-global's ".light-theme section { background: transparent }": the pinned hero sits under this section */
html section.lxb-ba { background: var(--ba-bg); }

html.light-theme .lxb-ba {
  --ba-bg: #f5f6fb;
  --ba-text: #14162b;
  --ba-muted: rgba(20, 22, 43, .68);
  --ba-border: rgba(20, 22, 43, .12);
  --ba-before-bg: #e4e0da;
  --ba-after-bg: #ece9ff;
  --ba-app-bg: #fff;
  --ba-app-row: rgba(20, 22, 43, .04);
  --ba-accent-soft: #6d28d9;
}

.lxb-ba__inner { max-width: 1120px; margin: 0 auto; }
.lxb-ba__head { text-align: center; margin-bottom: 36px; }

.lxb-ba__badge {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 16px;
  border-radius: 100px;
  background: rgba(124, 58, 237, .16);
  border: 1px solid rgba(167, 139, 250, .35);
  color: var(--ba-accent-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.lxb-ba__title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--ba-text);
}

.lxb-ba__subtitle {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--ba-muted);
}

.lxb-ba__title, .lxb-ba__subtitle, .lxb-ba__hint, .lxb-ba__label,
.lxb-ba__note, .lxb-ba__feed b, .lxb-ba__feed small,
.lxb-ba__appbar strong { unicode-bidi: plaintext; }

/* Stage: the after layer fills it; the before layer sits on top, clipped at --ba-pos from the left */
.lxb-ba__stage {
  --ba-pos: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--ba-border);
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, .85);
  container-type: inline-size;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}

.lxb-ba__layer { position: absolute; inset: 0; }

.lxb-ba__after {
  background:
    radial-gradient(60% 70% at 80% 10%, rgba(124, 58, 237, .35), transparent 70%),
    radial-gradient(50% 60% at 20% 100%, rgba(16, 185, 129, .18), transparent 70%),
    var(--ba-after-bg);
}

.lxb-ba__before {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .02) 0 12px, transparent 12px 24px),
    var(--ba-before-bg);
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
  filter: saturate(.75);
}

.lxb-ba__label {
  position: absolute;
  top: 16px;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: clamp(12px, 1.6cqw, 15px);
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.lxb-ba__label--before { left: 16px; background: rgba(239, 68, 68, .9); color: #fff; }
.lxb-ba__label--after { right: 16px; background: linear-gradient(135deg, #7c3aed, #4f46e5); color: #fff; }

/* Before: scattered notes, phones and files */
.lxb-ba__note {
  position: absolute;
  width: 20%;
  padding: 1.1cqw 1.3cqw;
  border-radius: .9cqw;
  background: var(--ba-paper);
  color: var(--ba-paper-text);
  font-size: clamp(10px, 1.3cqw, 15px);
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 1cqw 2.4cqw rgba(0, 0, 0, .45);
  transform: rotate(var(--ba-rot, 0deg));
}

.lxb-ba__note small { display: block; margin-top: .3cqw; font-weight: 500; opacity: .7; font-size: .85em; }
.lxb-ba__note--alert { border-inline-start: .5cqw solid var(--ba-alert); }
.lxb-ba__note--sticky { background: #fde68a; width: 16%; font-family: "Comic Sans MS", "Segoe Print", cursive; font-size: clamp(11px, 1.5cqw, 17px); }
.lxb-ba__note--dark { background: #26262b; color: #f4f4f5; }
.lxb-ba__count {
  display: inline-block;
  min-width: 1.6em;
  margin-inline-end: .4em;
  padding: 0 .4em;
  border-radius: 100px;
  background: var(--ba-alert);
  color: #fff;
  text-align: center;
}

.lxb-ba__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: .7cqw;
}
.lxb-ba__grid span { height: 1cqw; min-height: 5px; background: rgba(42, 38, 34, .14); }
.lxb-ba__grid span:nth-child(3n) { background: rgba(239, 68, 68, .35); }

/* Four loose rows, left to right; each note sits roughly opposite its "after" line */
.lxb-ba__note--wa { left: 3%; top: 13%; --ba-rot: -5deg; }
.lxb-ba__note--ads { left: 27%; top: 10%; --ba-rot: 3deg; }
.lxb-ba__note--missed { left: 51%; top: 12%; --ba-rot: -3deg; }
.lxb-ba__note--passwords { left: 76%; top: 14%; --ba-rot: 6deg; }
.lxb-ba__note--sheet { left: 4%; top: 35%; width: 23%; --ba-rot: 2deg; }
.lxb-ba__note--email { left: 31%; top: 34%; --ba-rot: -4deg; }
.lxb-ba__note--calendar { left: 55%; top: 37%; --ba-rot: 4deg; }
.lxb-ba__note--reviews { left: 77%; top: 36%; --ba-rot: -2deg; }
.lxb-ba__note--sticky { left: 4%; top: 61%; --ba-rot: 6deg; }
.lxb-ba__note--contract { left: 25%; top: 59%; --ba-rot: -3deg; }
.lxb-ba__note--invoice { left: 50%; top: 61%; --ba-rot: 2deg; }
.lxb-ba__note--shifts { left: 75%; top: 59%; --ba-rot: -5deg; }
.lxb-ba__note--payroll { left: 38%; top: 81%; --ba-rot: 3deg; }

/* After: one clean app window with the same workday */
.lxb-ba__app {
  position: absolute;
  inset: 13% 4% 5%;
  display: flex;
  flex-direction: column;
  border-radius: 1.4cqw;
  background: var(--ba-app-bg);
  border: 1px solid var(--ba-border);
  box-shadow: 0 2cqw 5cqw rgba(0, 0, 0, .35);
  overflow: hidden;
  color: var(--ba-text);
}

.lxb-ba__appbar {
  display: flex;
  align-items: center;
  gap: .7cqw;
  padding: 1.1cqw 1.6cqw;
  border-bottom: 1px solid var(--ba-border);
  font-size: clamp(11px, 1.45cqw, 17px);
}
.lxb-ba__appbar strong { margin-inline-start: .8cqw; }
.lxb-ba__dot { width: .9cqw; height: .9cqw; min-width: 6px; min-height: 6px; border-radius: 50%; background: var(--ba-border); }

.lxb-ba__feed {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 1.4cqw;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: .9cqw 1.2cqw;
}
.lxb-ba__feed li {
  display: flex;
  align-items: center;
  gap: 1cqw;
  min-width: 0;
  padding: .6cqw 1cqw;
  border-radius: .9cqw;
  background: var(--ba-app-row);
}
.lxb-ba__feed b { display: block; font-size: clamp(10px, 1.25cqw, 15px); }
.lxb-ba__feed small { display: block; font-size: clamp(9px, 1.05cqw, 13px); color: var(--ba-muted); }
.lxb-ba__feed .lxb-ba__text { flex: 1; min-width: 0; }

.lxb-ba__ch, .lxb-ba__ok {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7cqw;
  height: 2.7cqw;
  min-width: 20px;
  min-height: 20px;
  border-radius: 50%;
  color: #fff;
}
.lxb-ba__ch svg, .lxb-ba__ok svg { width: 55%; height: 55%; }
.lxb-ba__ch--ad { background: #ec4899; }
.lxb-ba__ch--wa { background: #22c55e; }
.lxb-ba__ch--user { background: #6366f1; }
.lxb-ba__ch--cal { background: #f59e0b; }
.lxb-ba__ch--call { background: #3b82f6; }
.lxb-ba__ch--mail { background: #0ea5e9; }
.lxb-ba__ch--pay { background: var(--ba-accent); }
.lxb-ba__ch--sign { background: #14b8a6; }
.lxb-ba__ch--star { background: #eab308; }
.lxb-ba__ch--clock { background: #f97316; }
.lxb-ba__ch--wallet { background: #059669; }
.lxb-ba__ch--spark { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.lxb-ba__ok { background: rgba(16, 185, 129, .18); color: var(--ba-ok); }

/* Divider + knob */
.lxb-ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  z-index: 3;
  width: 44px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  outline: none;
}
.lxb-ba__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 18px rgba(124, 58, 237, .9);
}
.lxb-ba__knob {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #4f46e5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.lxb-ba__knob svg { width: 24px; height: 24px; }
.lxb-ba__handle:focus-visible .lxb-ba__knob { outline: 3px solid #a78bfa; outline-offset: 3px; }

.lxb-ba__hint { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--ba-muted); }

/* Links to the modules shown in the picture */
.lxb-ba__modules { margin-top: 28px; text-align: center; }
.lxb-ba__modules-title { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--ba-muted); }
.lxb-ba__module-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lxb-ba__module {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--ba-border);
  background: var(--ba-app-row);
  color: var(--ba-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  unicode-bidi: plaintext;
  transition: border-color .2s ease, color .2s ease;
}
.lxb-ba__module:hover, .lxb-ba__module:focus-visible { border-color: rgba(167, 139, 250, .7); color: var(--ba-accent-soft); }
.lxb-ba__module:focus-visible { outline: 2px solid #a78bfa; outline-offset: 2px; }

/* Narrow screens: tall stage, notes in two loose columns, one-column app without the second lines */
@media (max-width: 768px) {
  .lxb-ba { padding: 64px 16px; }
  .lxb-ba__stage { aspect-ratio: 9 / 16; border-radius: 14px; }
  .lxb-ba__note { width: 43%; padding: 8px 10px; border-radius: 8px; }
  .lxb-ba__note--sheet { width: 43%; }
  .lxb-ba__note--sticky { width: 38%; }
  .lxb-ba__note--wa { left: 3%; top: 8%; }
  .lxb-ba__note--ads { left: 52%; top: 9%; }
  .lxb-ba__note--missed { left: 4%; top: 22%; }
  .lxb-ba__note--passwords { left: 52%; top: 23%; }
  .lxb-ba__note--sheet { left: 3%; top: 36%; }
  .lxb-ba__note--email { left: 52%; top: 37%; }
  .lxb-ba__note--reviews { left: 4%; top: 52%; }
  .lxb-ba__note--contract { left: 52%; top: 51%; }
  .lxb-ba__note--sticky { left: 5%; top: 66%; }
  .lxb-ba__note--invoice { left: 52%; top: 65%; }
  .lxb-ba__note--shifts { left: 4%; top: 81%; }
  .lxb-ba__note--payroll { left: 52%; top: 80%; }
  .lxb-ba__note--calendar { display: none; }
  .lxb-ba__app { inset: 7% 4% 3%; border-radius: 12px; }
  .lxb-ba__appbar { padding: 10px 12px; }
  .lxb-ba__feed { grid-template-columns: 1fr; gap: 6px; padding: 10px; }
  .lxb-ba__feed li { gap: 10px; padding: 4px 10px; border-radius: 10px; }
  .lxb-ba__feed small { display: none; }
  .lxb-ba__label { top: 10px; padding: 5px 11px; }
  .lxb-ba__label--before { left: 10px; }
  .lxb-ba__label--after { right: 10px; }
  .lxb-ba__module-list { gap: 8px; }
  .lxb-ba__module { padding: 8px 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .lxb-ba__stage { cursor: default; }
}
