/* Floating invoice workflow, shared by the English and Arabic landing pages. */
.integration-3d-stage { width: 100%; max-width: 920px; min-width: 0; margin-inline: auto; container: invoice-workflow / inline-size; }
  .integration-3d-stage .workflow-product {
    --workflow-bg: light-dark(#f8f8fd, #171724);
    --workflow-ink: light-dark(#28213e, #f0eafb);
    --workflow-muted: light-dark(#746b89, #b7adc9);
    --workflow-card: light-dark(#ffffff, #292739);
    --workflow-brand-paper: light-dark(#ffffff, #f0eef7);
    --workflow-brand-ink: #2d263c;
    --workflow-brand-muted: #756c88;
    --workflow-line: light-dark(#cbbde8, #625077);
    --workflow-purple: #6647ee;
    --workflow-purple-ink: light-dark(#6942cd, #c4aaff);
    --workflow-green: light-dark(#158957, #6cdcaa);
    --workflow-blue: light-dark(#3a68c7, #99b9ff);
    --workflow-pink: light-dark(#d747a1, #ff8bcc);
    --workflow-shadow: light-dark(#30234e1a, #00000050);
    --workflow-depth: 12px;
    --workflow-glow: .22;
    position: relative;
    width: 100%;
    background: var(--workflow-bg);
    color: var(--workflow-ink);
    border-radius: 22px;
    overflow: hidden;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.35;
    color-scheme: inherit;
    isolation: isolate;
  }
  .integration-3d-stage .workflow-product * { box-sizing: border-box; }
  .integration-3d-stage .workflow-scene { position: relative; height: 604px; width: 100%; }
  .integration-3d-stage .workflow-atmosphere { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
  .integration-3d-stage .workflow-atmosphere::before {
    content: "";
    position: absolute;
    width: 470px;
    height: 470px;
    top: 10%;
    left: 17%;
    border-radius: 50%;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--workflow-purple) 14%, transparent), transparent 65%);
  }
  .integration-3d-stage .workflow-atmosphere::after {
    content: "";
    position: absolute;
    inset: 15px;
    background-image: radial-gradient(color-mix(in srgb, var(--workflow-purple) 13%, transparent) .6px, transparent .6px);
    background-size: 25px 25px;
    mask-image: radial-gradient(ellipse, #000 5%, transparent 70%);
  }
  .integration-3d-stage .workflow-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
  .integration-3d-stage .workflow-route { fill: none; stroke: var(--workflow-line); stroke-width: 1.2; opacity: .52; transition: opacity .5s, stroke .5s; }
  .integration-3d-stage .workflow-route[data-kind="return"] { opacity: 0; stroke: var(--workflow-pink); }
  .integration-3d-stage .workflow-route[data-kind="accepted"] { stroke: var(--workflow-green); opacity: .36; }
  .integration-3d-stage .workflow-route[data-kind="email"] { stroke: var(--workflow-blue); opacity: .38; }
  .integration-3d-stage .workflow-route[data-kind="whatsapp"] { stroke: var(--workflow-green); opacity: .38; }
  .integration-3d-stage .workflow-route.is-active { opacity: .92; stroke-width: 1.8; }
  .integration-3d-stage .workflow-route[data-kind="input"].is-active,
  .integration-3d-stage .workflow-route[data-kind="submit"].is-active,
  .integration-3d-stage .workflow-route[data-kind="document"].is-active { stroke: var(--workflow-purple); }
  .integration-3d-stage .workflow-anchor {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    z-index: 3;
  }
  .integration-3d-stage .workflow-platform {
    display: block;
    width: 94px;
    height: 88px;
    padding: 0;
    border: 0;
    appearance: none;
    cursor: pointer;
    border-radius: 17px;
    background: transparent;
    color: var(--workflow-brand-ink);
    font: inherit;
    text-align: center;
  }
  .integration-3d-stage .workflow-face {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 100%;
    padding: 9px 7px;
    background: var(--workflow-brand-paper);
    border: 1px solid color-mix(in srgb, var(--workflow-brand-paper) 88%, var(--workflow-line));
    border-radius: 17px;
    box-shadow: 0 var(--workflow-depth) 24px -6px var(--workflow-shadow), 0 2px 3px var(--workflow-shadow), inset 0 1px 0 #ffffffcc;
    transform: rotate(var(--tilt, 0deg));
    animation: workflow-float 3.5s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    transition: box-shadow .25s, border-color .25s;
  }
  .integration-3d-stage .workflow-platform:hover .workflow-face,
  .integration-3d-stage .workflow-platform:focus-visible .workflow-face {
    border-color: color-mix(in srgb, var(--workflow-purple) 38%, var(--workflow-brand-paper));
    box-shadow: 0 17px 32px -7px var(--workflow-shadow), 0 0 0 3px color-mix(in srgb, var(--workflow-purple) 9%, transparent);
  }
  .integration-3d-stage .workflow-platform[aria-pressed="true"] .workflow-face { border-color: color-mix(in srgb, var(--workflow-purple) 28%, var(--workflow-brand-paper)); }
  .integration-3d-stage .workflow-logo { width: 31px; height: 30px; object-fit: contain; flex-shrink: 0; }
  .integration-3d-stage .workflow-platform-name { font-size: 11px; font-weight: 500; }
  .integration-3d-stage .workflow-type { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: #786791; }
  .integration-3d-stage .workflow-type.live { color: #087f78; }
  .integration-3d-stage .workflow-type.live::before { content: ""; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
  .integration-3d-stage .workflow-qb { width: 128px; height: 83px; }
  .integration-3d-stage .workflow-qb .workflow-logo { width: 109px; height: 31px; }
  .integration-3d-stage .workflow-qb .workflow-face { gap: 3px; padding: 7px; }
  .integration-3d-stage [data-node="qbo"] { --x: 12%; --y: 12%; --tilt: -5deg; --delay: -1s; }
  .integration-3d-stage [data-node="qbd"] { --x: 31%; --y: 24%; --tilt: 4deg; --delay: -3s; }
  .integration-3d-stage [data-node="xero"] { --x: 9%; --y: 36%; --tilt: -5deg; --delay: -2s; }
  .integration-3d-stage [data-node="shopify"] { --x: 27%; --y: 49%; --tilt: 4deg; --delay: -5s; }
  .integration-3d-stage [data-node="loyverse"] { --x: 9%; --y: 63%; --tilt: -3deg; --delay: -4s; }
  .integration-3d-stage [data-node="ggpos"] { --x: 27%; --y: 74%; --tilt: 5deg; --delay: -1s; }
  .integration-3d-stage [data-node="manager"] { --x: 11%; --y: 88%; --tilt: -4deg; --delay: -5s; }
  .integration-3d-stage [data-node="freshbooks"] { --x: 32%; --y: 91%; --tilt: 3deg; --delay: -3s; width: 106px; }
  .integration-3d-stage [data-node="freshbooks"] .workflow-logo { width: 67px; height: 27px; }
  .integration-3d-stage [data-node="shopify"] .workflow-logo { width: 56px; height: 28px; }
  .integration-3d-stage [data-node="ggpos"] .workflow-logo { width: 56px; height: 25px; }
  .integration-3d-stage .workflow-core { --x: 51%; --y: 48%; width: 150px; height: 150px; z-index: 6; }
  .integration-3d-stage .workflow-aura {
    position: absolute;
    inset: -45px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--workflow-purple) 24%, transparent), transparent 70%);
    opacity: calc(var(--workflow-glow) * 3);
    animation: workflow-breathe 2.5s ease-in-out infinite;
    pointer-events: none;
  }
  .integration-3d-stage .workflow-ring { position: absolute; inset: -14px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--workflow-purple) 17%, transparent); pointer-events: none; }
  .integration-3d-stage .workflow-ring.outer { inset: -27px; border-color: color-mix(in srgb, var(--workflow-purple) 8%, transparent); }
  .integration-3d-stage .workflow-ring.outer::before { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; top: 23px; right: 23px; background: #bca7fc; box-shadow: 0 0 12px #a684ff80; }
  .integration-3d-stage .workflow-ring.outer { animation: workflow-orbit 13s linear infinite; }
  .integration-3d-stage .workflow-core-face {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 16%, #a089ff, #7652f0 30%, #603ad9 66%, #402096);
    color: #ffffff;
    border: 1px solid #bba8ff;
    box-shadow: 0 var(--workflow-depth) 0 -3px #3e238e, 0 calc(var(--workflow-depth) + 9px) 28px -5px #3e238e4a, inset 0 2px 4px #e2d8ff88, inset 0 -9px 18px #38207955;
  }
  .integration-3d-stage .workflow-core-logo { width: 39px; height: 39px; object-fit: contain; margin-bottom: 9px; filter: drop-shadow(0 1px 3px #35235f22); }
  .integration-3d-stage .workflow-core-title { font-size: 13px; font-weight: 500; }
  .integration-3d-stage .workflow-core-subtitle { font-size: 11px; margin-top: 5px; color: #e0d6ff; }
  .integration-3d-stage .workflow-core.is-processing .workflow-core-face { box-shadow: 0 var(--workflow-depth) 0 -3px #3e238e, 0 0 0 7px #8662fa18, 0 16px 40px #7b4bff50, inset 0 2px 4px #e2d8ff88; }
  .integration-3d-stage .workflow-process {
    position: absolute;
    top: calc(100% + 35px);
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 8px;
    background: var(--workflow-card);
    box-shadow: 0 4px 15px var(--workflow-shadow);
    white-space: nowrap;
    color: var(--workflow-purple-ink);
    font-size: 11px;
  }
  .integration-3d-stage .workflow-process svg { width: 13px; height: 13px; }
  .integration-3d-stage .workflow-server { --x: 86%; --y: 27%; width: 108px; height: 108px; z-index: 5; }
  .integration-3d-stage .workflow-server .workflow-ring { inset: -9px; border-color: color-mix(in srgb, var(--workflow-green) 14%, transparent); }
  .integration-3d-stage .workflow-server .workflow-ring.outer { inset: -20px; border-color: color-mix(in srgb, var(--workflow-green) 6%, transparent); animation: none; }
  .integration-3d-stage .workflow-server .workflow-ring.outer::before { display: none; }
  .integration-3d-stage .workflow-server-face {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    border-radius: 50%;
    color: #ffffff;
    border: 1px solid #7dc8a1;
    background: radial-gradient(circle at 26% 16%, #5dbb84, #258355 40%, #135533);
    box-shadow: 0 9px 0 -3px #124a30, 0 20px 30px -7px #16643c33, inset 0 2px 4px #c7f8da66;
  }
  .integration-3d-stage .workflow-server-logo { width: 30px; height: 28px; object-fit: contain; filter: brightness(0) invert(1); }
  .integration-3d-stage .workflow-server-title { font-size: 13px; font-weight: 500; }
  .integration-3d-stage .workflow-server-subtitle { font-size: 11px; color: #d5eddf; }
  .integration-3d-stage .workflow-pdf {
    --x: 70%; --y: 66%;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 112px; height: 43px; border-radius: 12px;
    color: var(--workflow-purple-ink); background: var(--workflow-card);
    border: 1px solid color-mix(in srgb, var(--workflow-purple) 12%, var(--workflow-card));
    box-shadow: 0 8px 21px -7px var(--workflow-shadow), 3px 4px 0 color-mix(in srgb, var(--workflow-purple) 8%, var(--workflow-card));
    font-size: 12px; font-weight: 500;
  }
  .integration-3d-stage .workflow-pdf svg { width: 19px; height: 19px; }
  .integration-3d-stage .workflow-delivery {
    width: 110px; height: 100px;
    padding: 12px 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    background: var(--workflow-card); border: 1px solid color-mix(in srgb, var(--workflow-line) 45%, var(--workflow-card));
    border-radius: 18px;
    box-shadow: 0 var(--workflow-depth) 25px -8px var(--workflow-shadow), inset 0 1px 0 color-mix(in srgb, var(--workflow-card) 85%, #ffffff);
  }
  .integration-3d-stage [data-node="email"] { --x: 71%; --y: 85%; transform: translate(-50%, -50%) rotate(-3deg); }
  .integration-3d-stage [data-node="whatsapp"] { --x: 89%; --y: 85%; transform: translate(-50%, -50%) rotate(3deg); }
  .integration-3d-stage .workflow-delivery-icon { width: 33px; height: 33px; filter: drop-shadow(0 4px 6px #243f7c14); }
  .integration-3d-stage .workflow-delivery-name { font-size: 13px; font-weight: 500; }
  .integration-3d-stage .workflow-delivery-note { font-size: 11px; color: var(--workflow-muted); }
  .integration-3d-stage .workflow-delivery.is-delivered { box-shadow: 0 10px 26px -8px var(--workflow-shadow), 0 0 0 4px color-mix(in srgb, var(--workflow-green) 9%, transparent); }
  .integration-3d-stage .workflow-path-label { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2; color: var(--workflow-muted); font-size: 11px; white-space: nowrap; pointer-events: none; padding: 4px 6px; background: var(--workflow-bg); border-radius: 7px; }
  .integration-3d-stage .workflow-label-in { --x: 40%; --y: 14%; color: var(--workflow-purple-ink); }
  .integration-3d-stage .workflow-label-submit { --x: 75%; --y: 16%; color: var(--workflow-purple-ink); }
  .integration-3d-stage .workflow-label-accepted { --x: 78%; --y: 41%; color: var(--workflow-green); }
  .integration-3d-stage .workflow-label-delivery { --x: 81%; --y: 74%; }
  .integration-3d-stage .workflow-label-return { --x: 41%; --y: 73%; color: var(--workflow-pink); opacity: 0; transition: opacity .3s; }
  .integration-3d-stage .workflow-product[data-step="delivery"] .workflow-label-return { opacity: 1; }
  .integration-3d-stage .workflow-footer { min-height: 40px; padding: 3px 18px 14px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
  .integration-3d-stage .workflow-selection { margin-inline-end: auto; color: var(--workflow-muted); font-size: 11px; }
  .integration-3d-stage .workflow-product[data-paused="true"] * { animation-play-state: paused !important; }
  @keyframes workflow-float { 0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); } 50% { transform: translateY(-5px) rotate(calc(var(--tilt, 0deg) + 1deg)); } }
  @keyframes workflow-breathe { 0%,100% { transform: scale(.96); } 50% { transform: scale(1.08); } }
  @keyframes workflow-orbit { to { transform: rotate(360deg); } }
  @container invoice-workflow (max-width: 640px) {
    .integration-3d-stage .workflow-product { border-radius: 16px; }
    .integration-3d-stage .workflow-scene { height: 846px; }
    .integration-3d-stage .workflow-atmosphere::before { width: 360px; height: 500px; left: -20px; top: 28%; }
    .integration-3d-stage .workflow-platform { width: 82px; height: 88px; }
    .integration-3d-stage .workflow-qb { width: 124px; height: 88px; }
    .integration-3d-stage .workflow-qb .workflow-logo { width: 103px; height: 29px; }
    .integration-3d-stage .workflow-qb .workflow-platform-name { max-width: 105px; }
    .integration-3d-stage [data-node="qbo"] { --x: 25%; --y: 8%; }
    .integration-3d-stage [data-node="qbd"] { --x: 75%; --y: 8%; }
    .integration-3d-stage [data-node="xero"] { --x: 16%; --y: 21%; }
    .integration-3d-stage [data-node="shopify"] { --x: 50%; --y: 21%; }
    .integration-3d-stage [data-node="loyverse"] { --x: 84%; --y: 21%; }
    .integration-3d-stage [data-node="ggpos"] { --x: 16%; --y: 34%; }
    .integration-3d-stage [data-node="manager"] { --x: 50%; --y: 34%; }
    .integration-3d-stage [data-node="freshbooks"] { --x: 84%; --y: 34%; width: 82px; }
    .integration-3d-stage [data-node="freshbooks"] .workflow-logo { width: 63px; }
    .integration-3d-stage .workflow-core { --x: 34%; --y: 53%; width: 128px; height: 128px; }
    .integration-3d-stage .workflow-core-title { width: 95px; text-align: center; font-size: 12px; }
    .integration-3d-stage .workflow-core-logo { width: 33px; height: 33px; margin-bottom: 6px; }
    .integration-3d-stage .workflow-core-subtitle { font-size: 11px; }
    .integration-3d-stage .workflow-server { --x: 81%; --y: 52%; width: 86px; height: 86px; }
    .integration-3d-stage .workflow-server-logo { width: 22px; height: 22px; }
    .integration-3d-stage .workflow-server-face { gap: 4px; }
    .integration-3d-stage .workflow-server-title { font-size: 12px; }
    .integration-3d-stage .workflow-server-subtitle { display: none; }
    .integration-3d-stage .workflow-process { top: calc(100% + 28px); font-size: 11px; padding: 5px 6px; }
    .integration-3d-stage .workflow-pdf { --x: 56%; --y: 73%; width: 108px; }
    .integration-3d-stage [data-node="email"] { --x: 26%; --y: 90%; }
    .integration-3d-stage [data-node="whatsapp"] { --x: 74%; --y: 90%; }
    .integration-3d-stage .workflow-label-in { --x: 27%; --y: 42%; }
    .integration-3d-stage .workflow-label-submit { --x: 75%; --y: 43%; }
    .integration-3d-stage .workflow-label-accepted { --x: 76%; --y: 63%; }
    .integration-3d-stage .workflow-label-delivery { --x: 53%; --y: 81%; }
    .integration-3d-stage .workflow-label-return { display: none; }
    .integration-3d-stage .workflow-footer { padding: 0 12px 12px; }
    .integration-3d-stage .workflow-selection { max-width: 60%; }
  }
  @media (prefers-reduced-motion: reduce) {
    .integration-3d-stage .workflow-product * { animation: none !important; transition: none !important; }
  }

/* Let the hero grow with its graphic, including in the stacked layout. */
.hero--workflow > .container {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(660px, 1.18fr);
    align-items: center;
    gap: 32px;
}
.hero--workflow .hero-content { min-width: 0; }
.hero--workflow .hero-visual {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    min-width: 0;
    margin: 0;
    transform: none;
    display: block;
}
.hero--workflow .workflow-product { background: transparent; border-radius: 0; }
.integration-3d-stage .workflow-platform:focus-visible { outline: 2px solid var(--workflow-purple); outline-offset: 5px; }
.integration-3d-stage .workflow-platform:disabled { opacity: 1; cursor: default; }
.integration-3d-stage .workflow-platform:active .workflow-face { border-color: var(--workflow-purple); }
.integration-3d-stage .workflow-platform-name,
.integration-3d-stage .workflow-selection { unicode-bidi: plaintext; }
.integration-3d-stage .workflow-announcement { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1199px) {
    .hero--workflow > .container { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hero--workflow .hero-visual { margin: 0; }
}
