/* =====================================================================
   Solutions hub — /ar/solutions/ and /solutions/   (prefix .sols-)
   ===================================================================== */

/* ---------- hero art: seven application blocks lock into one cube ---------- */
.sols-hero-svg polygon { stroke: rgba(14,27,82,.12); stroke-width: 1; stroke-linejoin: round; }
.sols-hb .f-top { fill: #fbfcff; }
.sols-hb .f-left { fill: #d3dbf0; }
.sols-hb .f-right { fill: #a9b7df; }
.sols-hb.gold .f-top { fill: #f9e6b4; }
.sols-hb.gold .f-left { fill: #e9b440; }
.sols-hb.gold .f-right { fill: #c48f1c; }
.sols-hb-in { animation: sols-lock 1.9s var(--ease) both; animation-delay: var(--d); }
.sols-hb-lift { transition: transform .45s var(--ease); }
.sols-hb:hover .sols-hb-lift { transform: translateY(-14px); }
.sols-hb.low:hover .sols-hb-lift { transform: translateY(14px); }
.sols-hb:hover .f-top { fill: #fff; }
.sols-hb.gold:hover .f-top { fill: #fdf0cc; }
.sols-cube { animation: bob-s 5.5s ease-in-out 3.6s infinite alternate; }
.sols-rail { stroke: rgba(247,226,173,.6); stroke-width: 1.3; stroke-dasharray: 3 5; animation: sols-rail 2.1s ease both; animation-delay: var(--d); }
.sols-hr circle { fill: none; stroke: var(--lapis-400); stroke-width: .11; stroke-linecap: round; }
.sols-hr .ring-c { stroke-dasharray: 76 24; animation: draw-c 1.4s var(--ease) 2.9s both; }
.sols-hr .ring-o { stroke-dasharray: 100 0; animation: draw-o 1.4s var(--ease) 3.15s both; }
.sols-orbit { fill: none; stroke: rgba(201,211,242,.4); stroke-width: 1.4; stroke-dasharray: 2 9; animation: flow-orbit 6s linear infinite; }
.sols-orbit.front { stroke: rgba(247,226,173,.55); }

@keyframes sols-lock {
  0% { transform: translate(var(--ex), var(--ey)); opacity: 0; }
  14% { opacity: 1; }
  42% { transform: translate(var(--ex), var(--ey)); }
  100% { transform: translate(0, 0); opacity: 1; }
}
@keyframes sols-rail { 0% { opacity: 0; } 15%, 60% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- the seven tiles: accounting is the footing course ---------- */
.sols-tiles .sols-lead { grid-column: 1 / -1; }
.sols-tiles .sols-lead .tile {
  padding: 30px 32px 32px;
  background: linear-gradient(180deg, #fffaf0, #fbefd2);
  box-shadow: inset 0 0 0 1px #ecd9a6, inset 0 -4px 0 var(--gold);
}
.sols-tiles .sols-lead .tile h3 { font-size: clamp(22px, 2.2vw, 28px); }
.sols-tiles .sols-lead .tile h3::before { background: var(--gold-deep); }
.sols-tiles .sols-lead .tile p { font-size: 17.5px; max-width: 46em; }
.sols-tiles .sols-lead a.tile:hover { box-shadow: inset 0 0 0 1px var(--gold), inset 0 -4px 0 var(--gold-deep), 0 18px 28px -18px rgba(14,27,82,.5); }

/* ---------- how the applications feed each other ---------- */
.sols-flow-wrap { position: relative; --gap: 22px; --node: 46px; }
.sols-flow { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.sols-flow li { position: relative; padding-top: calc(var(--node) + 18px); }
.sols-node {
  position: absolute; top: 0; inset-inline-start: 0; width: var(--node); height: var(--node);
  animation: sols-node 9s var(--ease) infinite; animation-delay: calc(var(--i) * 1.5s);
}
.sols-node::before, .sols-node::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6 88 28 50 50 12 28z' fill='%23ffffff'/%3E%3Cpath d='M12 28 50 50 50 94 12 72z' fill='%23d3dbf0'/%3E%3Cpath d='M88 28 50 50 50 94 88 72z' fill='%23a9b7df'/%3E%3Cpath d='M50 6 88 28 88 72 50 94 12 72 12 28z' fill='none' stroke='%230e1b52' stroke-opacity='.22' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.sols-node::after {
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 6 88 28 50 50 12 28z' fill='%23f9e6b4'/%3E%3Cpath d='M12 28 50 50 50 94 12 72z' fill='%23e9b440'/%3E%3Cpath d='M88 28 50 50 50 94 88 72z' fill='%23c48f1c'/%3E%3C/svg%3E");
  animation: sols-node-gold 9s ease infinite; animation-delay: calc(var(--i) * 1.5s);
}
.sols-flow li.is-end .sols-node::after { opacity: 1; animation-name: sols-node-gold-end; }
.sols-app {
  display: inline-block; font-family: var(--f-ui); font-weight: 500; font-size: var(--t-xs); line-height: 1.4;
  color: var(--lapis-700); padding: 3px 9px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--lapis-300); background: rgba(255,255,255,.6);
  margin-bottom: 10px;
}
.sols-flow li.is-end .sols-app { color: #5d3f04; background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.sols-flow h3 { font-size: 20px; color: var(--lapis-900); margin-bottom: 6px; }
.sols-flow p { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }

/* the rail the transaction travels on (from the first node to the last) */
.sols-flow-rail {
  position: absolute; top: calc(var(--node) / 2 - 1px); height: 2px;
  inset-inline-start: calc(var(--node) / 2);
  width: calc(100% * 5 / 6 + var(--gap) * 5 / 6);
  background: repeating-linear-gradient(to left, var(--lapis-300) 0 8px, transparent 8px 16px);
  background-size: 16px 2px; animation: sols-rail-rtl 1s linear infinite;
}
[dir="ltr"] .sols-flow-rail { animation-name: sols-rail-ltr; }
.sols-flow-rail i {
  position: absolute; top: -6px; width: 14px; height: 14px; margin-inline-start: -7px;
  inset-inline-start: 100%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(227,168,43,.25); transform: rotate(45deg);
  animation: sols-travel 9s linear infinite;
  z-index: 1;
}
@keyframes sols-rail-rtl { from { background-position: 0 0; } to { background-position: -16px 0; } }
@keyframes sols-rail-ltr { from { background-position: 0 0; } to { background-position: 16px 0; } }
@keyframes sols-travel {
  0% { inset-inline-start: 0%; opacity: 0; }
  2%, 6.67% { inset-inline-start: 0%; opacity: 1; }
  16.67%, 23.33% { inset-inline-start: 20%; }
  33.33%, 40% { inset-inline-start: 40%; }
  50%, 56.67% { inset-inline-start: 60%; }
  66.67%, 73.33% { inset-inline-start: 80%; }
  83.33% { inset-inline-start: 100%; opacity: 1; }
  96% { inset-inline-start: 100%; opacity: 1; }
  100% { inset-inline-start: 100%; opacity: 0; }
}
@keyframes sols-node {
  0% { transform: none; }
  3%, 13% { transform: translateY(-7px); }
  18%, 100% { transform: none; }
}
@keyframes sols-node-gold { 0% { opacity: 0; } 3%, 13% { opacity: 1; } 19%, 100% { opacity: 0; } }
@keyframes sols-node-gold-end { 0%, 100% { opacity: 1; } }

/* ---------- custom development: the made-to-measure block ---------- */
.sols-fit-svg { display: block; width: 100%; max-width: 440px; height: auto; margin-inline: auto; overflow: visible; }
.sols-fit-svg polygon { stroke: rgba(14,27,82,.14); stroke-width: 1; stroke-linejoin: round; }
.sols-fb .f-top { fill: #ffffff; }
.sols-fb .f-left { fill: #d3dbf0; }
.sols-fb .f-right { fill: #a9b7df; }
.sols-slot polygon { fill: rgba(227,168,43,.08); stroke: var(--gold-deep); stroke-width: 1.4; stroke-dasharray: 4 5; }
.sols-fit .f-top { fill: #f9e6b4; }
.sols-fit .f-left { fill: #e9b440; }
.sols-fit .f-right { fill: #c48f1c; }
.sols-fit polygon { stroke: rgba(90,55,0,.25); }
.sols-fit-lift { transition: transform .6s var(--ease); }
.sols-custom .split-visual:hover .sols-fit-lift { transform: translateY(-96px); }
.sols-custom.in-view .sols-fit { animation: sols-fit 1.6s cubic-bezier(.25,.9,.3,1.08) .3s both; }
.sols-fit-guide { stroke: var(--gold-deep); stroke-opacity: .55; stroke-width: 1.3; stroke-dasharray: 3 6; animation: flow 1.6s linear infinite; }
.sols-fit-shadow { fill: rgba(14,27,82,.08); }
@keyframes sols-fit { 0%, 25% { transform: translateY(-120px); } 100% { transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .sols-flow h3 { font-size: 18px; }
  .sols-flow p { font-size: 15px; }
  .sols-flow-wrap { --gap: 16px; --node: 40px; }
}
@media (max-width: 920px) {
  .sols-flow-rail { display: none; }
  .sols-flow { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sols-flow li { padding-top: 0; padding-inline-start: calc(var(--node) + 18px); padding-bottom: 30px; min-height: calc(var(--node) + 30px); }
  .sols-flow li:last-child { padding-bottom: 0; }
  .sols-flow li:not(:last-child)::before {
    content: ""; position: absolute; top: calc(var(--node) + 2px); bottom: 2px; width: 2px;
    inset-inline-start: calc(var(--node) / 2 - 1px);
    background: repeating-linear-gradient(to bottom, var(--lapis-300) 0 8px, transparent 8px 16px);
    background-size: 2px 16px; animation: sols-rail-down 1s linear infinite;
  }
  .sols-flow h3 { font-size: 20px; }
  .sols-flow p { font-size: 16px; max-width: 34em; }
  .sols-fit-svg { max-width: 340px; }
}
@keyframes sols-rail-down { from { background-position: 0 0; } to { background-position: 0 16px; } }
