.workflow-phone-scene{position:absolute;z-index:2;height:57%;aspect-ratio:560/1163;right:7%;bottom:5%;filter:drop-shadow(0 18px 24px #0f172a44);overflow:hidden;border-radius:13% / 6%;background:#fff;transition:opacity 360ms,transform 620ms cubic-bezier(.23,1,.32,1);}
.workflow-phone-scene .workflow-phone{position:relative;width:100%;height:100%;right:auto;bottom:auto;display:block;object-fit:contain;filter:none;}
.wf-phone-brand{position:absolute;z-index:2;left:6.5%;top:27.1%;width:54%;padding:1px 2px;background:#fff;color:#0f172a;font-size:clamp(6px,.7vw,9px);font-weight:800;white-space:nowrap;}
.wf-scan-line{position:absolute;z-index:4;left:6%;right:6%;height:3px;top:20%;background:#6366f1;box-shadow:0 0 14px #818cf8;opacity:0;}
.workflow-media[data-wf-step="0"] .wf-scan-line{animation:wf-scan 1250ms ease-in-out infinite;opacity:1;}
@keyframes wf-scan{0%{transform:translateY(0);opacity:.3}50%{opacity:1}100%{transform:translateY(170px);opacity:.3}}

.wf-menu,.wf-review{position:absolute;z-index:3;left:3%;right:3%;bottom:3%;background:#fff;box-shadow:0 -8px 25px #1e293b16;padding:14px 10px;opacity:0;transform:translateY(24px);transition:transform 550ms cubic-bezier(.23,1,.32,1),opacity 300ms;pointer-events:none;display:flex;flex-direction:column;gap:8px;}
.wf-mini-label{font-size:8px;letter-spacing:.8px;color:#64748b;font-weight:700;}
.wf-menu>strong,.wf-review>strong{font-size:12px;line-height:1.4;color:#1e293b;}
.wf-menu>span:not(.wf-mini-label),.wf-review>span:not(.wf-mini-label){font-size:9px;color:#64748b;line-height:1.45;}
.wf-add,.wf-review-button{margin-top:auto;background:#4f46e5;color:white;padding:9px 7px;font-size:9px;display:flex;gap:5px;justify-content:space-between;border-radius:5px;}
.workflow-media[data-wf-step="1"] .wf-menu,.workflow-media[data-wf-step="3"] .wf-menu,.workflow-media[data-wf-step="4"] .wf-review{opacity:1;transform:none;}
.wf-review{top:31%;bottom:4%;justify-content:center;text-align:left;border-top:1px solid #e0e7ff;}
.wf-stars{font-size:16px;letter-spacing:1px;color:#f1a90b;}

.wf-routing{position:absolute;z-index:3;inset:12% 5% 13%;padding:18px;border:1px solid #c7d2fe;background:#fffffff7;box-shadow:0 24px 54px #312e8139;opacity:0;transform:translateY(22px) scale(.97);pointer-events:none;overflow:hidden;display:grid;grid-template-rows:auto auto auto 1fr;gap:10px;}
.workflow-media[data-wf-step="2"] .workflow-phone-scene{opacity:0;transform:translateX(28px) scale(.94);}
.workflow-media[data-wf-step="2"] .wf-routing{animation:wf-route-stage 600ms cubic-bezier(.23,1,.32,1) both;}
.wf-routing-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:11px;border-bottom:1px solid #e2e8f0;}
.wf-routing-head>div{display:grid;gap:3px;}
.wf-routing-head span,.wf-route-label{font-size:9px;line-height:1.3;letter-spacing:.08em;color:#64748b;font-weight:750;}
.wf-routing-head strong{font-size:16px;line-height:1.2;color:#1e293b;}
.wf-routing-head>b{font-size:9px;letter-spacing:.06em;color:#4f46e5;background:#eef2ff;padding:6px 8px;}
.wf-reader{position:relative;padding:12px 14px;border:1px solid #e2e8f0;background:#f8fafc;overflow:hidden;}
.wf-reader-status{display:flex;align-items:center;gap:8px;margin-bottom:9px;font-size:10px;font-weight:700;color:#4f46e5;}
.wf-reader-status i{width:7px;height:7px;border-radius:50%;background:#4f46e5;box-shadow:0 0 0 0 #4f46e544;}
.workflow-media[data-wf-step="2"] .wf-reader-status i{animation:wf-reader-pulse 950ms ease-out 3;}
.wf-reader-items{display:grid;gap:6px;position:relative;}
.wf-reader-items::after{content:'';position:absolute;inset:0 0 auto;height:2px;background:#6366f1;box-shadow:0 0 12px #6366f1aa;opacity:0;}
.workflow-media[data-wf-step="2"] .wf-reader-items::after{animation:wf-order-scan 1500ms ease-in-out 220ms both;}
.wf-reader-items>div{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;color:#1e293b;}
.wf-reader-items b{font-size:8px;letter-spacing:.06em;color:#64748b;background:#e2e8f0;padding:4px 6px;}
.wf-route-label{align-self:end;color:#4f46e5;}
.wf-route-grid{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.wf-route-card{position:relative;min-width:0;min-height:112px;padding:11px 9px 24px;border:1px solid #c7d2fe;background:#fff;box-shadow:0 8px 20px #312e8110;display:flex;flex-direction:column;gap:7px;overflow:hidden;opacity:0;transform:translateY(18px);}
.workflow-media[data-wf-step="2"] .wf-route-card{animation:wf-route-card 520ms cubic-bezier(.23,1,.32,1) both;}
.workflow-media[data-wf-step="2"] .wf-route-card:nth-child(1){animation-delay:1250ms;}
.workflow-media[data-wf-step="2"] .wf-route-card:nth-child(2){animation-delay:1600ms;}
.workflow-media[data-wf-step="2"] .wf-route-card:nth-child(3){animation-delay:1950ms;}
.wf-route-card>span{font-size:8px;letter-spacing:.09em;color:#4f46e5;font-weight:800;}
.wf-route-card>small{margin-top:auto;display:flex;align-items:center;gap:4px;font-size:8px;color:#28765c;}
.workflow-media[data-wf-step="2"] .wf-route-card .wf-ticket{animation:wf-ticket-print 650ms cubic-bezier(.23,1,.32,1) both;}
.workflow-media[data-wf-step="2"] .wf-route-card:nth-child(1) .wf-ticket{animation-delay:1850ms;}
.workflow-media[data-wf-step="2"] .wf-route-card:nth-child(2) .wf-ticket{animation-delay:2200ms;}
.workflow-media[data-wf-step="2"] .wf-route-card:nth-child(3) .wf-ticket{animation-delay:2550ms;}

@keyframes wf-route-stage{from{opacity:0;transform:translateY(22px) scale(.97)}to{opacity:1;transform:none}}
@keyframes wf-reader-pulse{0%{box-shadow:0 0 0 0 #4f46e555}80%,100%{box-shadow:0 0 0 8px #4f46e500}}
@keyframes wf-order-scan{0%{opacity:0;transform:translateY(0)}15%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translateY(35px)}}
@keyframes wf-route-card{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

.wf-notification{position:absolute;z-index:4;left:5%;bottom:7%;width:54%;max-width:360px;display:flex;transform-origin:left bottom;}
.wf-notification>div{display:flex;flex-direction:column;gap:5px;}
.wf-notification strong{font-size:13px;line-height:1.4;}
.wf-notification div>span{font-size:10px;line-height:1.4;}
.workflow-media[data-wf-step="2"] .wf-notification{left:50%;bottom:5%;width:auto;max-width:none;transform:translateX(-50%);white-space:nowrap;--toast-ink:#166534;--toast-icon:url(/lp/img/icons/check.svg)}
.workflow-media[data-wf-step="4"] .wf-notification{--toast-ink:#9a3412;--toast-icon:url(/lp/img/icons/alert.svg);}

.workflow-steps li{transition:color .3s;}
.workflow-steps li span{transition:background .3s,color .3s,box-shadow .3s;}
.workflow-steps li:first-child:not(.is-active) span{background:transparent;color:var(--accent);}
.workflow-steps li.is-active{color:#3730a3;font-weight:650;}
.workflow-steps li.is-active span{color:#fff;background:var(--toast-gradient);box-shadow:0 0 0 5px #4f46e513;}
.wf-motion-tools{position:absolute;z-index:5;left:20px;right:20px;top:18px;display:flex;align-items:center;gap:8px;font-size:10px;}
.wf-motion-tools>span{margin-right:auto;background:#ffffffed;padding:10px;color:#64748b;}
.wf-motion-tools button{min-height:44px;padding:8px 12px;border:1px solid #e0e7ff;background:#fffffff0;color:#475569;font:inherit;cursor:pointer;}
.wf-motion-tools button:focus-visible{outline:2px solid #4f46e5;outline-offset:3px;}
.workflow-media[data-wf-paused="true"] *{animation-play-state:paused!important;}

@media(max-width:1023px){
 .workflow-phone-scene{height:60%;right:6%;}
 .wf-notification{max-width:330px;}
 .wf-routing{inset:12% 7% 14%;}
}
@media(max-width:767px){
 .wf-menu,.wf-review{padding:10px 8px;gap:6px;}
 .wf-menu>strong,.wf-review>strong{font-size:10px;}
 .wf-add,.wf-review-button{font-size:8px;padding:7px 5px;}
 .wf-review{top:29%;}
 .wf-stars{font-size:13px;}
 .workflow-lifestyle{object-position:50% 42%;}
 .workflow-phone-scene{height:78%;bottom:3%;}
 .wf-motion-tools{left:8px;right:8px;top:8px;font-size:8px;}
 .wf-motion-tools>span{padding:7px 8px;}
 .wf-motion-tools button{min-width:44px;min-height:44px;padding:6px 8px;}
 .wf-routing{inset:8px;padding:8px;gap:5px;grid-template-rows:auto auto 1fr;}
 .wf-routing-head{padding-bottom:5px;gap:6px;}
 .wf-routing-head>b{font-size:6px;padding:4px 5px;}
 .wf-route-grid{gap:4px;}
 .wf-notification{left:8px;right:8px;bottom:16px;width:auto;max-width:none;padding:8px 28px 8px 9px;gap:7px;border-radius:11px;}
 .workflow-media[data-wf-step="2"] .wf-notification{left:8px;right:8px;bottom:14px;transform:none;white-space:normal;}
 .wf-notification .lp-toast-icon{width:14px;height:14px;}
 .wf-notification .toast-close{top:9px;right:9px;width:11px;height:11px;}
 .wf-notification strong{font-size:10px;}
 .wf-notification div>span{font-size:8px;}
}
@media(max-width:767px) and (max-height:720px){
 .workflow-phone-scene{height:82%;}
 .wf-motion-tools>span{max-width:126px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
}
@media(prefers-reduced-motion:reduce){
 .wf-scan-line{display:none;}
 .wf-menu,.wf-review,.workflow-phone-scene,.workflow-steps li,.workflow-steps li span{transition:none;}
 .wf-motion-tools button[data-wf-pause]{display:none;}
 .workflow-media[data-wf-step="2"] .wf-routing,.workflow-media[data-wf-step="2"] .wf-route-card,.workflow-media[data-wf-step="2"] .wf-route-card .wf-ticket{animation:none;opacity:1;transform:none;}
 .workflow-media[data-wf-step="2"] .wf-reader-items::after{animation:none;opacity:0;}
}

/* The phone overlays are ports of the real storefront: StorefrontItemCard (4:3
   photo, round + in the shop colour, name, note, price) and the cart button
   (rounded-2xl, shop colour, bold). The shop colour is the demo outlet's green,
   the same one the phone capture behind them shows. */
.workflow-phone-scene{--shop:#13603a;--shop-ink:#0f172a;--shop-muted:#64748b;--shop-line:rgba(15,23,42,.08);}
.wf-menu,.wf-review{border-top:0;border-radius:16px 16px 0 0;box-shadow:0 -10px 30px -12px rgba(15,23,42,.25);font-family:'Inter',sans-serif;}
.wf-mini-label{align-self:flex-start;padding:3px 8px;border-radius:9999px;background:#f1f5f9;color:#475569;font-size:9px;font-weight:600;letter-spacing:0;text-transform:none;}
.wf-menu-media{position:relative;margin-top:2px;}
.wf-menu .wf-menu-photo{display:block;width:100%;height:auto;aspect-ratio:4/3;border-radius:12px;}
.wf-plus{position:absolute;right:6px;bottom:-9px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--shop);color:#fff;font-size:15px;font-weight:600;box-shadow:0 0 0 3px #fff;}
.wf-qty{position:absolute;left:-5px;top:-5px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:9999px;background:var(--shop-ink);color:#fff;font-size:9px;font-weight:600;box-shadow:0 0 0 2px #fff;}
.wf-menu>strong{margin-top:8px;font-size:12px;font-weight:600;color:var(--shop-ink);}
.wf-price{font-size:12px;font-weight:600;color:var(--shop-ink);font-variant-numeric:tabular-nums;}
.wf-add,.wf-review-button{align-items:center;justify-content:space-between;min-height:34px;padding:8px 10px;border-radius:14px;background:var(--shop);font-weight:700;font-size:10px;}
.wf-add,.wf-review-button{white-space:nowrap;gap:6px;}
.wf-review-button{justify-content:center;}
/* Routing panel on the app's card radii: modal 16, inner cards 12, badges 6. */
.lp-refresh .wf-routing{border-radius:16px;border-color:rgba(15,23,42,.08);box-shadow:0 20px 60px -10px rgba(15,23,42,.20),0 4px 16px -4px rgba(15,23,42,.10);}
.lp-refresh .wf-reader,.lp-refresh .wf-route-card{border-radius:12px;}
.lp-refresh .wf-routing-head b,.lp-refresh .wf-reader-items b{border-radius:6px;}
/* Storefront card at a readable phone scale: the phone grows so its screen is
   ~200px wide, the item sheet covers the store header, and the CTA keeps
   "Tambah ke Pesanan" and the total on one line. */
.workflow-phone-scene{height:72%;bottom:4%;right:6%;}
.wf-menu{top:11%;bottom:.6%;left:2.5%;right:2.5%;min-height:0;padding:12px 12px 14px;gap:4px;border-radius:16px 16px 26px 26px;}
.wf-menu-media{margin:6px 0 4px;}
.wf-menu>strong{margin-top:6px;font-size:13px;line-height:1.35;}
.wf-menu>span:not(.wf-mini-label){font-size:11px;}
.wf-price{font-size:13px;}
.wf-mini-label{font-size:10px;}
.wf-add{margin-top:auto;min-height:36px;padding:8px 12px;font-size:11px;gap:8px;}
.wf-review{top:20%;}
.wf-stepper{display:flex;align-items:center;justify-content:space-between;align-self:center;width:62%;margin-top:auto;padding:3px;border:1px solid var(--shop-line);border-radius:9999px;font-size:13px;font-weight:600;color:var(--shop-ink);}
.wf-stepper span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#f1f5f9;}
.wf-stepper span:last-child{background:var(--shop);color:#fff;}
.wf-stepper+.wf-add{margin-top:10px;}
.wf-notification{width:50%;}
@media(max-width:1023px){.workflow-phone-scene{height:70%;}}
@media(max-width:767px){
 .workflow-phone-scene{height:86%;bottom:3%;}
 .wf-menu{top:9%;padding:6px;gap:2px;}
 .wf-menu-media{margin:3px 0 2px;}
 .wf-menu>strong{margin-top:3px;font-size:9px;}
 .wf-menu>span:not(.wf-mini-label),.wf-stepper{display:none;}
 .wf-stepper+.wf-add{margin-top:auto;}
 .wf-price{font-size:9px;}
 .wf-mini-label{font-size:7px;padding:2px 5px;}
 .wf-qty{min-width:12px;height:12px;font-size:7px;left:-3px;top:-3px;}
 .wf-plus{width:16px;height:16px;font-size:10px;bottom:-6px;right:4px;box-shadow:0 0 0 2px #fff;}
 .wf-add{flex-direction:column;align-items:center;justify-content:center;gap:0;min-height:0;padding:4px;font-size:7px;line-height:1.3;white-space:normal;border-radius:8px;}
 .wf-notification{width:auto;}
 .workflow-media:not([data-wf-step="2"]) .wf-notification{right:37%;}
 .wf-menu{border-radius:10px 10px 14px 14px;}
}
/* Each destination shows the lines its printer actually receives; the cashier
   printer prints the guest's receipt, so its card carries the subtotal. */
.wf-routing{bottom:auto;grid-template-rows:none;align-content:start;}
.wf-route-grid{align-items:start;}
.wf-route-card{min-height:0;padding:10px;gap:8px;}
.wf-route-card>.wf-ticket{position:static;height:auto;transform:none;margin:0;padding:8px;list-style:none;display:grid;gap:4px;background:#fff;border:1px dashed #cbd5e1;border-radius:6px;font:500 10px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace;color:#0f172a;}
.wf-route-card>.wf-ticket li{display:flex;justify-content:space-between;gap:6px;min-width:0;}
.wf-route-card>.wf-ticket em{font-style:normal;color:#475569;}
.wf-route-receipt>.wf-ticket li:first-child{color:#475569;}
.workflow-media[data-wf-step="2"] .wf-route-card .wf-ticket{animation:wf-ticket-print 650ms cubic-bezier(.23,1,.32,1) both;}
@keyframes wf-ticket-print{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}
.wf-route-card>small{margin-top:0;font-size:10px;color:#15803d;}
:root[data-theme='dark'] .wf-route-card>.wf-ticket{background:#fff;color:#0f172a;}
@media(max-width:767px){
 .wf-routing{inset:60px 8px auto;}
 .wf-reader,.wf-route-label{display:none;}
 .wf-routing-head span{font-size:7px;}
 .wf-routing-head strong{font-size:11px;}
 .wf-route-card>span{font-size:7px;}
 .wf-route-card{padding:5px 4px;gap:3px;}
 .wf-route-card>.wf-ticket{padding:3px;gap:1px;font-size:6px;border-radius:3px;}
 .wf-route-card>.wf-ticket li{display:block;}
 .wf-route-card>.wf-ticket b{display:block;}
}
@media(prefers-reduced-motion:reduce){.workflow-media[data-wf-step="2"] .wf-route-card .wf-ticket{animation:none;clip-path:none;}}
